--- # Configurazione dell'ambiente di boot via rete per i client - name: Verifica configurazione tftp shell: /sbin/e-smith/db configuration getprop dnsmasq dhcp-boot register: chk_tftp_enabled changed_when: "'pxelinux.0' not in chk_tftp_enabled.stdout" ignore_errors: yes become: yes - name: Configuro tftp shell: /sbin/e-smith/db configuration setprop dnsmasq tftp-status enabled dhcp-boot pxelinux.0 when: chk_tftp_enabled|changed become: yes - name: Attivo tftp shell: /sbin/e-smith/signal-event nethserver-dnsmasq-save when: chk_tftp_enabled|changed become: yes - name: Creo directory necessarie file: path={{ item }} state=directory with_items: - /var/lib/tftpboot/pxelinux.cfg - /var/lib/tftpboot/ubuntu/14.04/i386 - /var/lib/tftpboot/ubuntu/14.04/amd64 - /var/lib/tftpboot/utils/memtest86 become: yes - name: pxelinux.0 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/pxelinux.0 dest: /var/lib/tftpboot/pxelinux.0 become: yes - name: pxelinux.cfg/default template: src=pxelinux.cfg/default dest=/var/lib/tftpboot/pxelinux.cfg/default become: yes - name: bglug.png copy: src=bglug.png dest=/var/lib/tftpboot/utils/bglug.png become: yes - name: vesamenu.c32 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/boot-screens/vesamenu.c32 dest: /var/lib/tftpboot/utils/vesamenu.c32 become: yes - name: chain.c32 get_url: url: "http://bglug.sys42.eu/chain.c32" dest: /var/lib/tftpboot/utils/chain.c32 become: yes - name: linux i386 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/linux dest: /var/lib/tftpboot/ubuntu/14.04/i386/linux become: yes - name: initrd.gz i386 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/initrd.gz dest: /var/lib/tftpboot/ubuntu/14.04/i386/initrd.gz become: yes - name: linux amd64 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux dest: /var/lib/tftpboot/ubuntu/14.04/amd64/linux become: yes - name: initrd.gz amd64 get_url: url: http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz dest: /var/lib/tftpboot/ubuntu/14.04/amd64/initrd.gz become: yes - name: memdisk get_url: url: http://sys42.eu/pxe-bootimg/memdisk dest: /var/lib/tftpboot/utils/memdisk become: yes - name: memtest86 get_url: url: http://sys42.eu/pxe-bootimg/memtest86/vmlinuz dest: /var/lib/tftpboot/utils/memtest86/vmlinuz become: yes - name: hdt get_url: url: http://sys42.eu/pxe-bootimg/hdt.img dest: /var/lib/tftpboot/utils/hdt.img become: yes