This shouldn't be starts with, but find
This commit is contained in:
parent
72e6cb43ef
commit
384ff623b9
1 changed files with 2 additions and 2 deletions
|
@ -43,13 +43,13 @@
|
||||||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}
|
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}
|
||||||
delegate_to: noc01.phx2.fedoraproject.org
|
delegate_to: noc01.phx2.fedoraproject.org
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: not inventory_hostname.startswith('stg')
|
when: inventory_hostname.find('.stg.') == -1
|
||||||
|
|
||||||
- name: schedule stg host downtime
|
- name: schedule stg host downtime
|
||||||
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}.stg
|
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}.stg
|
||||||
delegate_to: noc01.phx2.fedoraproject.org
|
delegate_to: noc01.phx2.fedoraproject.org
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: inventory_hostname.startswith('stg')
|
when: inventory_hostname.find('.stg.') != -1
|
||||||
|
|
||||||
- name: halt the vm instances - to poweroff
|
- name: halt the vm instances - to poweroff
|
||||||
command: /sbin/halt -p
|
command: /sbin/halt -p
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue