take it out all that

This commit is contained in:
Seth Vidal 2012-12-12 21:45:30 +00:00
parent 513804a53b
commit fa47e426e5

View file

@ -10,8 +10,9 @@
register: needsreboot
- name: tell nagios to shush
action: nagios action=downtime host=${ansible_hostname} minutes=30 service=all
action: nagios action=silence host=${ansible_hostname}
delegate_to: noc01.phx2.fedoraproject.org
only_if: "'${needsreboot.stdout}'.find('yes') != -1"
- name: reboot the host
action: command /sbin/reboot
@ -21,7 +22,10 @@
local_action: wait_for host=${inventory_hostname} port=22 delay=10 timeout=420
only_if: "'${needsreboot.stdout}'.find('yes') != -1"
# ADDME give nagios the all clear
- name: tell nagios to shush
action: nagios action=unsilence host=${ansible_hostname}
delegate_to: noc01.phx2.fedoraproject.org
only_if: "'${needsreboot.stdout}'.find('yes') != -1"