ansible/roles/batcave/files/ansible-playbook-check-diff.cron
Patrick Uiterwijk 7014968213 Run a check-diff with merging hashes to find the differences
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-04-29 22:27:15 +00:00

11 lines
551 B
Bash
Executable file

#!/bin/bash
mailto='admin@fedoraproject.org'
source /root/sshagent >>/dev/null
export ANSIBLE_HOST_KEY_CHECKING=False
export HOME=/root/
#export ANSIBLE_SSH_PIPELINING=False
export ANSIBLE_HASH_BEHAVIOUR=merge
/srv/web/infra/ansible/scripts/ansible-playbook-check-diff |& grep ok=
# Send a email with failed or changed from the above check/diff run
/srv/web/infra/ansible/scripts/logview -d today -s CHECK_DIFF:CHANGED -s CHECK_DIFF:FAILED | mailx -s "ansible changed/failed actions from check/diff daily run" sysadmin-logs-members@fedoraproject.org