Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

81 lines
2.3KB

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