From 09ab03b30842c4b65237fec0268a4175b19fe4d7 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Wed, 22 Jul 2015 21:52:30 +0000 Subject: [PATCH] Add nonagios to update and reboot playbooks --- playbooks/vhost_reboot.yml | 5 ++++- playbooks/vhost_update.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 510e4f81ea..b1464609cf 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -2,7 +2,7 @@ # This playbook lets you safely reboot a virthost and all it's guests. # # requires --extra-vars="target=somevhost fqdn" -# Might add nodns=true to the extra vars +# Might add nodns=true or nonagios=true to the extra vars #General overview: # talk to the vhost @@ -48,6 +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 != "true" - name: halt the vm instances - to poweroff command: /sbin/shutdown -h 1 @@ -73,6 +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 != "true" - name: reboot the virthost command: /sbin/shutdown -r 1 @@ -98,6 +100,7 @@ nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }} delegate_to: noc01.phx2.fedoraproject.org ignore_errors: true + when: nonagios != "true" # 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 diff --git a/playbooks/vhost_update.yml b/playbooks/vhost_update.yml index a2bf57d750..1bd4cbf777 100644 --- a/playbooks/vhost_update.yml +++ b/playbooks/vhost_update.yml @@ -1,7 +1,7 @@ # This playboook updates a virthost and all it's guests. # # requires --extra-vars="target=somevhostname yumcommand=update" -# Might add nodns=true at extra-vars +# Might add nodns=true or nonagios=true at extra-vars # - name: find instances @@ -32,6 +32,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 != "true" - name: expire-caches command: yum clean expire-cache