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.

80 lines
2.1KB

  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. {% if debian_nonfree_firmware %}
  34. --firmware-binary true
  35. {% endif %}
  36. {% endif %}
  37. args:
  38. chdir: "{{ live_build_directory }}"
  39. - name: root user
  40. import_role:
  41. name: root_user
  42. vars:
  43. root_target_directory: "{{ live_build_directory }}/config/includes.chroot/"
  44. - name: include common packages
  45. template:
  46. src: common.list.chroot.j2
  47. dest: "{{ live_build_directory }}/config/package-lists/common.list.chroot"
  48. - name: include desktop packages
  49. template:
  50. src: desktop.list.chroot.j2
  51. dest: "{{ live_build_directory }}/config/package-lists/desktop.list.chroot"
  52. - name: include custom packages
  53. template:
  54. src: custom.list.chroot.j2
  55. dest: "{{ live_build_directory }}/config/package-lists/custom.list.chroot"
  56. when: live_build_custom_packages is defined
  57. - name: debian-installer installer includes directory
  58. file:
  59. path: "{{ live_build_directory }}/config/includes.installer"
  60. state: directory
  61. - name: debian-installer preseed
  62. template:
  63. src: preseed.cfg.j2
  64. dest: "{{ live_build_directory }}/config/includes.installer/preseed.cfg"