--- - name: remove config directory file: path: "{{ live_build_directory }}/config" state: absent - name: lb clean command: lb clean args: chdir: "{{ live_build_directory }}" - name: lb config command: lb config {% if live_build_distribution is defined %} --distribution "{{ live_build_distribution }}" {% endif %} --mirror-bootstrap "{{ debian_mirror }}" --mirror-chroot-security "{{ debian_security_mirror }}" --mirror-binary "{{ debian_mirror }}" --mirror-binary-security "{{ debian_security_mirror }}" {% if debian_nonfree_firmware %} --archive-areas "main contrib non-free" --firmware-chroot true {% endif %} {% if live_build_bootappend_live is defined %} --bootappend-live "{{ live_build_bootappend_live }}" {% endif %} {% if (debian_backports is defined) and (debian_backports == true) %} --backports true {% endif %} {% if debian_live_debian_installer is defined %} --debian-installer "{{ debian_live_debian_installer }}" --debian-installer-gui "{{ live_build_debian_installer_gui | ternary("true","false") }}" {% if debian_nonfree_firmware %} --firmware-binary true {% endif %} {% endif %} --iso-publisher "{{ live_build_iso_publisher }}" --debootstrap-options "--include=ca-certificates" {% if live_build_linux_surface %} --linux-flavours surface {% endif %} args: chdir: "{{ live_build_directory }}" - name: root user import_role: name: root_user vars: root_target_directory: "{{ live_build_directory }}/config/includes.chroot/" - name: include common packages copy: "{{ live_build_common_packages | unique | join('\n') }}" content: config/package-lists/common.list.chroot.j2 dest: "{{ live_build_directory }}/config/package-lists/common.list.chroot" - name: include desktop packages copy: content: "{{ live_build_desktop_packages | unique | join('\n') }}" dest: "{{ live_build_directory }}/config/package-lists/desktop.list.chroot" when: live_build_desktop - name: include debian-installer-launcher package copy: content: debian-installer-launcher dest: "{{ live_build_directory }}/config/package-lists/debian-installer-launcher.list.chroot" when: live_build_desktop - name: include custom packages copy: content: "{{ live_build_custom_packages | unique | join('\n') }}" dest: "{{ live_build_directory }}/config/package-lists/custom.list.chroot" when: live_build_custom_packages is defined - name: debian-installer installer includes directory file: path: "{{ live_build_directory }}/config/includes.installer" state: directory - name: debian-installer preseed template: src: config/includes.installer/preseed.cfg.j2 dest: "{{ live_build_directory }}/config/includes.installer/preseed.cfg" - name: linux-surface copy: src: linux-surface/ dest: "{{ live_build_directory }}" when: live_build_linux_surface