From f671e1c4289fceb25cecb8b7991ffd37c5d1e153 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 20 Aug 2018 21:06:12 +0000 Subject: [PATCH] Look up the mac in hostvars 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 4236bef7f8..d3ba72696d 100644 --- a/roles/tftp_server/tasks/main.yml +++ b/roles/tftp_server/tasks/main.yml @@ -42,7 +42,7 @@ - tftp_server - name: generate custom configs - template: src=grubhost.cfg dest="/var/lib/tftpboot/uefi/{{ item.install_mac }}" + template: src=grubhost.cfg dest="/var/lib/tftpboot/uefi/{{ hostvars[item].install_mac }}" with_items: "{{ groups['all'] }}" when: "hostvars[item].install_noc == inventory_hostname" tags: