You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.6KB

  1. ---
  2. - name: remove config directory
  3. file:
  4. path: "{{ live_build_directory }}/config"
  5. state: absent
  6. - name: lb clean
  7. command:
  8. lb clean
  9. args:
  10. chdir: "{{ live_build_directory }}"
  11. - name: lb config
  12. command:
  13. lb config
  14. {% if live_build_distribution is defined %}
  15. --distribution "{{ live_build_distribution }}"
  16. {% endif %}
  17. --mirror-bootstrap "{{ debian_mirror }}"
  18. --mirror-chroot-security "{{ debian_security_mirror }}"
  19. --mirror-binary "{{ debian_mirror }}"
  20. --mirror-binary-security "{{ debian_security_mirror }}"
  21. {% if debian_nonfree_firmware %}
  22. --archive-areas "main contrib non-free"
  23. --firmware-chroot true
  24. {% endif %}
  25. {% if live_build_bootappend_live is defined %}
  26. --bootappend-live "{{ live_build_bootappend_live }}"
  27. {% endif %}
  28. {% if (debian_backports is defined) and (debian_backports == true) %}
  29. --backports true
  30. {% endif %}
  31. {% if debian_live_debian_installer is defined %}
  32. --debian-installer "{{ debian_live_debian_installer }}"
  33. --debian-installer-gui "{{ live_build_debian_installer_gui | ternary("true","false") }}"
  34. {% if debian_nonfree_firmware %}
  35. --firmware-binary true
  36. {% endif %}
  37. {% endif %}
  38. --iso-publisher "{{ live_build_iso_publisher }}"
  39. --debootstrap-options "--include=ca-certificates"
  40. {% if live_build_linux_surface %}
  41. --linux-flavours surface
  42. {% endif %}
  43. args:
  44. chdir: "{{ live_build_directory }}"
  45. - name: include chroot packages
  46. copy:
  47. content: "{{ live_build_chroot_package_lists[item] | unique | join('\n') }}"
  48. dest: "{{ live_build_directory }}/config/package-lists/{{ item }}.list.chroot"
  49. loop: "{{ live_build_chroot_package_lists.keys() | list }}"
  50. - name: debian-installer installer includes directory
  51. file:
  52. path: "{{ live_build_directory }}/config/includes.installer"
  53. state: directory
  54. - name: debian-installer preseed
  55. template:
  56. src: config/includes.installer/preseed.cfg.j2
  57. dest: "{{ live_build_directory }}/config/includes.installer/preseed.cfg"
  58. - name: linux-surface
  59. copy:
  60. src: linux-surface/
  61. dest: "{{ live_build_directory }}"
  62. when: live_build_linux_surface
  63. - name: root user ssh directory
  64. file:
  65. path: "{{ live_build_directory }}/config/includes.chroot/root/.ssh"
  66. state: directory
  67. mode: 0700
  68. when: root_ssh_authorized_keys is defined
  69. - name: root user ssh authorized keys
  70. copy:
  71. content: "{{ root_ssh_authorized_keys | join('\n') }}"
  72. dest: "{{ live_build_directory }}/config/includes.chroot/root/.ssh/authorized_keys"
  73. when: root_ssh_authorized_keys is defined