You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
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