manage 240 B

12345678
  1. #!/bin/bash
  2. # Default action is status if not specified
  3. ACTION=${1:-status}
  4. shift 2>/dev/null || true
  5. # Run the manage playbook with the specified action
  6. ansible-playbook ../manage_playbook.yml -i ../inventory/hosts -e "action=$ACTION" $@