reorder to give nagios time to be shutting up and make it longer
This commit is contained in:
parent
eef068fe2d
commit
cf98a024e6
1 changed files with 4 additions and 4 deletions
|
@ -24,14 +24,14 @@
|
||||||
local_action: fail msg="host does not exist on {{ vmhost }}"
|
local_action: fail msg="host does not exist on {{ vmhost }}"
|
||||||
when: inventory_hostname not in result.list_vms
|
when: inventory_hostname not in result.list_vms
|
||||||
|
|
||||||
- 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
|
- name: schedule 30m host downtime in nagios
|
||||||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
nagios: action=downtime minutes=60 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||||
delegate_to: noc01.phx2.fedoraproject.org
|
delegate_to: noc01.phx2.fedoraproject.org
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: pause for 30s before doing it
|
||||||
|
pause: seconds=30 prompt="Destroying (and lvremove for) vm now {{ target }}, abort if this is wrong"
|
||||||
|
|
||||||
- name: destroy the vm
|
- name: destroy the vm
|
||||||
virt: name={{ inventory_hostname }} command=destroy
|
virt: name={{ inventory_hostname }} command=destroy
|
||||||
delegate_to: "{{ vmhost }}"
|
delegate_to: "{{ vmhost }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue