|
- ---
-
- - 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: include chroot packages
- copy:
- content: "{{ live_build_chroot_package_lists[item] | unique | join('\n') }}"
- dest: "{{ live_build_directory }}/config/package-lists/{{ item }}.list.chroot"
- loop: "{{ live_build_chroot_package_lists.keys() | list }}"
-
- - 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
-
- - name: root user ssh directory
- file:
- path: "{{ live_build_directory }}/config/includes.chroot/root/.ssh"
- state: directory
- mode: 0700
- when: root_ssh_authorized_keys is defined
-
- - name: root user ssh authorized keys
- copy:
- content: "{{ root_ssh_authorized_keys | join('\n') }}"
- dest: "{{ live_build_directory }}/config/includes.chroot/root/.ssh/authorized_keys"
- when: root_ssh_authorized_keys is defined
|