use inventory_hostname_short - to work around our hosts havving the wrong names :(
This commit is contained in:
parent
fa47e426e5
commit
edf786b86b
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
register: needsreboot
|
||||
|
||||
- name: tell nagios to shush
|
||||
action: nagios action=silence host=${ansible_hostname}
|
||||
action: nagios action=silence host=${inventory_hostname_short}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
only_if: "'${needsreboot.stdout}'.find('yes') != -1"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
only_if: "'${needsreboot.stdout}'.find('yes') != -1"
|
||||
|
||||
- name: tell nagios to shush
|
||||
action: nagios action=unsilence host=${ansible_hostname}
|
||||
action: nagios action=unsilence host=${inventory_hostname_short}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
only_if: "'${needsreboot.stdout}'.find('yes') != -1"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue