manage.bat 279 B

12345678910111213
  1. @echo off
  2. setlocal
  3. :: Default action is status if not specified
  4. if "%1"=="" (
  5. set ACTION=status
  6. ) else (
  7. set ACTION=%1
  8. shift
  9. )
  10. :: Run the manage playbook with the specified action
  11. ansible-playbook ../manage_playbook.yml -i ../inventory/hosts -e "action=%ACTION%" %*