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