use inventory_hostname_short - to work around our hosts havving the wrong names :(

This commit is contained in:
Seth Vidal 2012-12-12 22:45:14 +00:00
parent fa47e426e5
commit edf786b86b

View file

@ -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"