take it out all that
This commit is contained in:
parent
513804a53b
commit
fa47e426e5
1 changed files with 6 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue