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