選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

124 行
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: "{{ live_build_directory }}"
  15. state: directory
  16. - name: remove config directory
  17. file:
  18. path: "{{ live_build_directory }}/config"
  19. state: absent
  20. - name: lb clean
  21. command:
  22. lb clean
  23. args:
  24. chdir: "{{ live_build_directory }}"
  25. - name: lb config
  26. command:
  27. lb config
  28. {{ lookup('template','lb-config-args.j2') }}
  29. args:
  30. chdir: "{{ live_build_directory }}"
  31. - name: ssh root access
  32. include_role:
  33. name: ssh_root_access
  34. vars:
  35. root_target_directory: "{{ live_build_directory }}/config/includes.chroot/"
  36. - name: keyboard configuration
  37. include_role:
  38. name: keyboard_configuration
  39. vars:
  40. root_target_directory: "{{ live_build_directory }}/config/includes.chroot/"
  41. when: live_build_serial_console == false
  42. - name: include common packages
  43. template:
  44. src: common.list.chroot.j2
  45. dest: "{{ live_build_directory }}/config/package-lists/common.list.chroot"
  46. - name: include console-setup package
  47. copy:
  48. content: console-setup
  49. dest: "{{ live_build_directory }}/config/package-lists/console-setup.list.chroot"
  50. when: live_build_serial_console == false
  51. - name: include custom packages
  52. template:
  53. src: custom.list.chroot.j2
  54. dest: "{{ live_build_directory }}/config/package-lists/custom.list.chroot"
  55. when: live_build_custom_packages is defined
  56. - name: isolinx directory
  57. file:
  58. path: "{{ live_build_directory }}/config/includes.binary/isolinux"
  59. state: directory
  60. - name: isolinux.cfg
  61. template:
  62. src: isolinux.cfg.j2
  63. dest: "{{ live_build_directory }}/config/includes.binary/isolinux/isolinux.cfg"
  64. - name: lb bootstrap (first build stage)
  65. command:
  66. lb bootstrap
  67. args:
  68. chdir: "{{ live_build_directory }}"
  69. register: _lb_bootstrap
  70. - name: lb chroot (second build stage)
  71. command:
  72. lb chroot
  73. args:
  74. chdir: "{{ live_build_directory }}"
  75. register: _lb_chroot
  76. - name: lb installer (third build stage)
  77. command:
  78. lb installer
  79. args:
  80. chdir: "{{ live_build_directory }}"
  81. register: _lb_installer
  82. - name: lb binary (fourth build stage)
  83. command:
  84. lb binary
  85. args:
  86. chdir: "{{ live_build_directory }}"
  87. register: _lb_binary
  88. #- name: lb source (fifth build stage)
  89. # command:
  90. # lb source
  91. # args:
  92. # chdir: "{{ live_source_directory }}"
  93. # register: _lb_source
  94. #- name: lb build
  95. # command:
  96. # lb build
  97. # args:
  98. # chdir: "{{ live_build_directory }}"
  99. # register: _lb_build
  100. #
  101. #- name: save build log
  102. # copy:
  103. # content: "{{ _lb_build.stdout }}"
  104. # dest: "{{ live_build_directory }}/build.log"