您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
768B

  1. ---
  2. - name: debian packages
  3. apt:
  4. pkg:
  5. - arch-install-scripts
  6. - name: default grub settings
  7. template:
  8. src: default-grub.j2
  9. dest: "{{ root_target_directory | default('') }}/etc/default/grub"
  10. - name: grub-install
  11. command: >
  12. {% if root_target_directory is defined %}arch-chroot {{ root_target_directory }}{% endif %}
  13. grub-install
  14. {{ lookup('template','grub-install.args.j2') }}
  15. {{ item }}
  16. with_items: "{{ boot_devices }}"
  17. - name: update-grub
  18. command: >
  19. {% if root_target_directory is defined %}arch-chroot {{ root_target_directory }}{% endif %}
  20. update-grub
  21. - name: update initramfs
  22. command: >
  23. {% if root_target_directory is defined %}arch-chroot {{ root_target_directory }}{% endif %}
  24. update-initramfs -u