...
 
Commits (2)
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
copy: copy:
src: "{{ item }}" src: "{{ item }}"
dest: "{{ '%s/%s' | format(pxelinux_root_path, item) }}" dest: "{{ '%s/%s' | format(pxelinux_root_path, item) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644 mode: 0644
with_items: with_items:
- "chain.c32" - "chain.c32"
......
--- ---
- import_tasks: _init.yml
- name: set image file for host {{ pxelinux_image_boothost }} - name: set image file for host {{ pxelinux_image_boothost }}
copy: copy:
src: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}" src: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
dest: "{{ '%s/pxelinux.cfg/01-%s' | format(pxelinux_root_path, hostvars[pxelinux_image_boothost].network.devices[host.network.control_device].mac | replace(':','-')) }}" dest: "{{ '%s/pxelinux.cfg/01-%s' | format(pxelinux_root_path, hostvars[pxelinux_image_boothost].network.devices[host.network.control_device].mac | replace(':','-')) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644 mode: 0644
remote_src: yes remote_src: yes
......