瀏覽代碼

current

master
父節點
當前提交
0e934a30fc
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +1
    -0
      defaults/main.yml
  2. +2
    -2
      tasks/main.yml

+ 1
- 0
defaults/main.yml 查看文件

@@ -2,3 +2,4 @@ grub_cmdline_linux:
grub_cmdline_linux_default: quiet
grub_disable_recovery: false
grub_terminal: console
boot_devices: "{{ hard_disks | map(attribute='device') | list }}"

+ 2
- 2
tasks/main.yml 查看文件

@@ -11,7 +11,8 @@
dest: "{{ root_target_directory }}/etc/default/grub"

- name: grub-install
command: chroot {{ root_target_directory }} grub-install {{ boot_devices | join(" ") }}
command: chroot {{ root_target_directory }} grub-install {{ item }}
with_items: "{{ boot_devices }}"

- name: update-grub
command: chroot {{ root_target_directory }} update-grub
@@ -19,7 +20,6 @@
- name: update initramfs
command: chroot {{ root_target_directory }} update-initramfs -u


- include_role:
name: chroot_environment
vars:


Loading…
取消
儲存