Fix nonagios and nodns when they're not the last argument

This commit is contained in:
Patrick Uiterwijk 2015-07-22 22:00:23 +00:00
parent 09ab03b308
commit 0e638a8f37
2 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@
# Call out to another playbook. Disable any proxies that may live here # Call out to another playbook. Disable any proxies that may live here
- include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies - include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies
when: nodns != "true" when: not "true" in nodns
- name: halt instances - name: halt instances
hosts: myvms_new hosts: myvms_new
@ -48,7 +48,7 @@
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }} nagios: action=downtime minutes=30 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
when: nonagios != "true" when: not "true" in nonagios
- name: halt the vm instances - to poweroff - name: halt the vm instances - to poweroff
command: /sbin/shutdown -h 1 command: /sbin/shutdown -h 1
@ -74,7 +74,7 @@
nagios: action=downtime minutes=60 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
when: nonagios != "true" when: not "true" in nonagios
- name: reboot the virthost - name: reboot the virthost
command: /sbin/shutdown -r 1 command: /sbin/shutdown -r 1
@ -100,11 +100,11 @@
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }} nagios: action=unsilence 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
when: nonagios != "true" when: not "true" in nonagios
# Call out to that dns playbook. Put proxies back in now that they're back # 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 - include: update-proxy-dns.yml status=enable proxies=myvms_new:&proxies
when: nodns != "true" when: not "true" in nodns
- name: Fix unbound if necessary - name: Fix unbound if necessary
# intersection - hosts that are in our dynamic group and also in unbound-dns # intersection - hosts that are in our dynamic group and also in unbound-dns

View file

@ -20,7 +20,7 @@
# Call out to another playbook. Disable any proxies that may live here # Call out to another playbook. Disable any proxies that may live here
- include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies - include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies
when: nodns != "true" when: not "true" in nodns
- name: update the system - name: update the system
hosts: "{{ target }}:myvms_new" hosts: "{{ target }}:myvms_new"
@ -32,7 +32,7 @@
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }} nagios: action=downtime minutes=30 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
when: nonagios != "true" when: not "true" in nonagios
- name: expire-caches - name: expire-caches
command: yum clean expire-cache command: yum clean expire-cache