Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

main.yml 2.3KB

il y a 8 ans
il y a 7 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 8 ans
il y a 7 ans
il y a 8 ans
il y a 8 ans
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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: fix debian jessie generate ssh host ed25519 keys
  65. copy:
  66. src: 1160-openssh-server
  67. dest: "{{ live_build_directory }}/config/includes.chroot/lib/live/config/1160-openssh-server"
  68. mode: 755
  69. when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
  70. - name: lb build
  71. command:
  72. lb build
  73. args:
  74. chdir: "{{ live_build_directory }}"
  75. register: _lb_build
  76. - name: save build log
  77. copy:
  78. content: "{{ _lb_build.stdout }}"
  79. dest: "{{ live_build_directory }}/build.log"