Rework vhost_reboot so that ansible 2.0 likes it.
This commit is contained in:
parent
402bfe6215
commit
610869ab80
1 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@
|
|||
|
||||
# Call out to another playbook. Disable any proxies that may live here
|
||||
- include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies
|
||||
when: nodns is not defined or not "true" in nodns
|
||||
when: nodns is not defined or not nodns
|
||||
|
||||
- name: halt instances
|
||||
hosts: myvms_new
|
||||
|
@ -48,7 +48,7 @@
|
|||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
when: nonagios is not defined or not "true" in nonagios
|
||||
when: nonagios is not defined or not nonagios
|
||||
|
||||
- name: halt the vm instances - to poweroff
|
||||
command: /sbin/shutdown -h 1
|
||||
|
@ -74,7 +74,7 @@
|
|||
nagios: action=downtime minutes=60 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
when: nonagios is not defined or not "true" in nonagios
|
||||
when: nonagios is not defined or not nonagios
|
||||
|
||||
- name: reboot the virthost
|
||||
command: /sbin/shutdown -r 1
|
||||
|
@ -100,11 +100,11 @@
|
|||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
when: nonagios is not defined or not "true" in nonagios
|
||||
when: nonagios is not defined or not nonagios
|
||||
|
||||
# Call out to that dns playbook. Put proxies back in now that they're back
|
||||
- include: update-proxy-dns.yml status=enable proxies=myvms_new:&proxies
|
||||
when: not "true" in nodns
|
||||
when: nodns is not defined or not nodns
|
||||
|
||||
- name: Fix unbound if necessary
|
||||
# intersection - hosts that are in our dynamic group and also in unbound-dns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue