From 8dd249daac071420bbf7071cee1cb17782ba39af Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 20 Aug 2018 21:05:15 +0000 Subject: [PATCH] I always forget that this is without ansible_ prefix Signed-off-by: Patrick Uiterwijk --- roles/tftp_server/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/tftp_server/tasks/main.yml b/roles/tftp_server/tasks/main.yml index 6e144cfe8c..4236bef7f8 100644 --- a/roles/tftp_server/tasks/main.yml +++ b/roles/tftp_server/tasks/main.yml @@ -44,6 +44,6 @@ - name: generate custom configs template: src=grubhost.cfg dest="/var/lib/tftpboot/uefi/{{ item.install_mac }}" with_items: "{{ groups['all'] }}" - when: "hostvars[item].install_noc == ansible_inventory_hostname" + when: "hostvars[item].install_noc == inventory_hostname" tags: - tftp_server