Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

102 Zeilen
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. - name: lb config
  26. command:
  27. lb config
  28. {{ lookup('template','lb-config-args.j2') }}
  29. args:
  30. chdir: "{{ debian_live_build_directory }}"
  31. - name: ssh root access
  32. include_role:
  33. name: ssh_root_access
  34. vars:
  35. root_target_directory: "{{ debian_live_build_directory }}/config/includes.chroot/"
  36. - name: keyboard configuration
  37. include_role:
  38. name: keyboard_configuration
  39. vars:
  40. root_target_directory: "{{ debian_live_build_directory }}/config/includes.chroot/"
  41. when: debian_live_build_serial_console == false
  42. - name: include common packages
  43. template:
  44. src: common.list.chroot.j2
  45. dest: "{{ debian_live_build_directory }}/config/package-lists/common.list.chroot"
  46. - name: include console-setup package
  47. copy:
  48. content: console-setup
  49. dest: "{{ debian_live_build_directory }}/config/package-lists/console-setup.list.chroot"
  50. when: debian_live_build_serial_console == false
  51. - name: include custom packages
  52. template:
  53. src: custom.list.chroot.j2
  54. dest: "{{ debian_live_build_directory }}/config/package-lists/custom.list.chroot"
  55. when: debian_live_build_custom_packages is defined
  56. - name: isolinx directory
  57. file:
  58. path: "{{ debian_live_build_directory }}/config/includes.binary/isolinux"
  59. state: directory
  60. - name: isolinux.cfg
  61. template:
  62. src: isolinux.cfg.j2
  63. dest: "{{ debian_live_build_directory }}/config/includes.binary/isolinux/isolinux.cfg"
  64. - name: fix debian jessie generate ssh host ed25519 keys directory
  65. file:
  66. path: "{{ debian_live_build_directory }}/config/includes.chroot/lib/live/config"
  67. state: directory
  68. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
  69. - name: fix debian jessie generate ssh host ed25519 keys
  70. copy:
  71. src: 1160-openssh-server
  72. dest: "{{ debian_live_build_directory }}/config/includes.chroot/lib/live/config/1160-openssh-server"
  73. mode: 755
  74. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
  75. - name: lb build
  76. command:
  77. lb build
  78. args:
  79. chdir: "{{ debian_live_build_directory }}"
  80. register: _lb_build
  81. - name: save build log
  82. copy:
  83. content: "{{ _lb_build.stdout }}"
  84. dest: "{{ debian_live_build_directory }}/build.log"