From edf786b86bc04db82da25ba86cd94d21aa19912c Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Wed, 12 Dec 2012 22:45:14 +0000 Subject: [PATCH] use inventory_hostname_short - to work around our hosts havving the wrong names :( --- playbooks/host-reboot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/host-reboot.yml b/playbooks/host-reboot.yml index c79fdd8382..42a4623f35 100644 --- a/playbooks/host-reboot.yml +++ b/playbooks/host-reboot.yml @@ -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"