Start with host-specific install config generation

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-08-20 21:01:17 +00:00
parent 72cd3aba20
commit d9264225b5
4 changed files with 45 additions and 0 deletions

View file

@ -40,3 +40,10 @@
synchronize: src="{{ bigfiles }}/tftpboot/" dest=/var/lib/tftpboot/
tags:
- tftp_server
- 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"
tags:
- tftp_server