Add nagios downtime to the destroyer of virt insts.

This commit is contained in:
Ralph Bean
2018-01-11 17:41:04 +00:00
parent 75030e7f19
commit 2163bf9cdd

View File

@@ -27,6 +27,11 @@
- name: pause for 30s before doing it
pause: seconds=30 prompt="Destroying (and lvremove for) vm now {{ target }}, abort if this is wrong"
- name: schedule 30m host downtime in nagios
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.phx2.fedoraproject.org
ignore_errors: true
- name: destroy the vm
virt: name={{ inventory_hostname }} command=destroy
delegate_to: "{{ vmhost }}"