monitor.sh #1

  • //
  • guest/
  • russell_jackson/
  • ansible-sdp/
  • monitor.sh
  • View
  • Commits
  • Open Download .zip Download (382 B)
#!/bin/bash
export SERVER=${1:-Undefined}
if [[ $SERVER == Undefined ]]; then
   echo "Server parameter not supplied."
   echo "You must supply the server or group name as a parameter to this script."
   exit 1
fi

ansible-playbook main-playbook.yml \
  --extra-vars '{"monitor_perforce":true}' \
  --vault-password-file password.txt \
  --limit $1 \
  --forks 20 \
  --timeout 30

# Change User Description Committed
#1 32488 Russell C. Jackson (Rusty) Ansible scaffolding for the sdp - Needs work.