From 682d67a5adb093af70c72cecceb32cc6a2d02d40 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 21 Nov 2013 20:19:48 +0000 Subject: [PATCH] Try and fix this stg downtime issue. --- playbooks/vhost_reboot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 8c62aafaee..73804af73f 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -43,6 +43,13 @@ action: nagios action=downtime minutes=30 service=host host={{ inventory_hostname_short }} delegate_to: noc01.phx2.fedoraproject.org ignore_errors: true + when: not ansible_domain.startswith('stg') + + - name: schedule host downtime + action: nagios action=downtime minutes=30 service=host host={{ inventory_hostname_short }}.stg + delegate_to: noc01.phx2.fedoraproject.org + ignore_errors: true + when: ansible_domain.startswith('stg') - name: halt the instances - to poweroff action: command /sbin/halt -p