Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

103 рядки
2.7KB

  1. ---
  2. - setup:
  3. gather_subset: '!all'
  4. - name: install apt packages
  5. apt:
  6. pkg: "{{ item }}"
  7. state: installed
  8. with_items:
  9. - live-build
  10. - memtest86
  11. - memtest86+
  12. - name: debian live-build directory
  13. file:
  14. path: "{{ debian_live_build_directory }}"
  15. state: directory
  16. - name: remove config directory
  17. file:
  18. path: "{{ debian_live_build_directory }}/config"
  19. state: absent
  20. - name: lb clean
  21. command:
  22. lb clean
  23. args:
  24. chdir: "{{ debian_live_build_directory }}"
  25. when: live_build_clean is defined and live_build_clean
  26. - name: lb config
  27. command:
  28. lb config
  29. {{ lookup('template','lb-config-args.j2') }}
  30. args:
  31. chdir: "{{ debian_live_build_directory }}"
  32. - name: ssh root access
  33. include_role:
  34. name: ssh_root_access
  35. vars:
  36. root_target_directory: "{{ debian_live_build_directory }}/config/includes.chroot/"
  37. - name: keyboard configuration
  38. include_role:
  39. name: keyboard_configuration
  40. vars:
  41. root_target_directory: "{{ debian_live_build_directory }}/config/includes.chroot/"
  42. when: debian_live_build_serial_console == false
  43. - name: include common packages
  44. template:
  45. src: common.list.chroot.j2
  46. dest: "{{ debian_live_build_directory }}/config/package-lists/common.list.chroot"
  47. - name: include console-setup package
  48. copy:
  49. content: console-setup
  50. dest: "{{ debian_live_build_directory }}/config/package-lists/console-setup.list.chroot"
  51. when: debian_live_build_serial_console == false
  52. - name: include custom packages
  53. template:
  54. src: custom.list.chroot.j2
  55. dest: "{{ debian_live_build_directory }}/config/package-lists/custom.list.chroot"
  56. when: debian_live_build_custom_packages is defined
  57. - name: isolinx directory
  58. file:
  59. path: "{{ debian_live_build_directory }}/config/includes.binary/isolinux"
  60. state: directory
  61. - name: isolinux.cfg
  62. template:
  63. src: isolinux.cfg.j2
  64. dest: "{{ debian_live_build_directory }}/config/includes.binary/isolinux/isolinux.cfg"
  65. - name: fix debian jessie generate ssh host ed25519 keys directory
  66. file:
  67. path: "{{ debian_live_build_directory }}/config/includes.chroot/lib/live/config"
  68. state: directory
  69. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
  70. - name: fix debian jessie generate ssh host ed25519 keys
  71. copy:
  72. src: 1160-openssh-server
  73. dest: "{{ debian_live_build_directory }}/config/includes.chroot/lib/live/config/1160-openssh-server"
  74. mode: 755
  75. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
  76. - name: lb build
  77. command:
  78. lb build
  79. args:
  80. chdir: "{{ debian_live_build_directory }}"
  81. register: _lb_build
  82. - name: save build log
  83. copy:
  84. content: "{{ _lb_build.stdout }}"
  85. dest: "{{ debian_live_build_directory }}/build.log"