Skip to content

Commit

Permalink
thanks to @nvntsin #11
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Mar 17, 2023
1 parent 9e42124 commit 8c13ec4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,14 @@

- 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

0 comments on commit 8c13ec4

Please sign in to comment.