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

28 行
694B

  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 {{ item }}
  13. with_items: "{{ boot_devices }}"
  14. - name: update-grub
  15. command: chroot {{ root_target_directory }} update-grub
  16. - name: update initramfs
  17. command: chroot {{ root_target_directory }} update-initramfs -u
  18. - include_role:
  19. name: chroot_environment
  20. vars:
  21. chroot_environment_state: unmounted
  22. when: root_target_directory is defined