Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

28 lines
680B

  1. ---
  2. - include_role:
  3. name: chroot_environment
  4. vars:
  5. chroot_environment_state: mounted
  6. when: root_target_directory is defined
  7. - name: default grub settings
  8. template:
  9. src: default-grub.j2
  10. dest: "{{ root_target_directory }}/etc/default/grub"
  11. - name: grub-install
  12. command: chroot {{ root_target_directory }} grub-install {{ boot_devices | join(" ") }}
  13. - name: update-grub
  14. command: chroot {{ root_target_directory }} update-grub
  15. - name: update initramfs
  16. command: chroot {{ root_target_directory }} update-initramfs -u
  17. - include_role:
  18. name: chroot_environment
  19. vars:
  20. chroot_environment_state: unmounted
  21. when: root_target_directory is defined