Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bootloader path on EFI images #11

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,13 @@

- name: set bootloader type
block:
- name: "PRELIM | set fact if UEFI boot | RHEL or OEL"
set_fact:
amazon2cis_bootloader_file: /boot/efi/EFI/redhat/grub.cfg
amazon2cis_legacy_boot: false
when:
- amazon2cis_efi_boot.stat.exists
- ansible_distribution != 'CentOS' # Note: rhel & OEL both use redhat path

- name: "PRELIM | set fact if UEFI boot | Amazon Linux 2 "
set_fact:
amazon2cis_bootloader_file: /boot/efi/EFI/amzn/grub.cfg
amazon2cis_legacy_boot: false
when:
- amazon2cis_efi_boot.stat.exists
- ansible_distribution == 'CentOS'
- ansible_distribution == 'Amazon'

- name: "PRELIM | set if not UEFI boot"
set_fact:
Expand Down