Skip to content

Commit

Permalink
Merge pull request #14 from ansible-lockdown/march_23
Browse files Browse the repository at this point in the history
March 23
  • Loading branch information
uk-bolly authored Mar 17, 2023
2 parents 4d3f2b1 + 8c13ec4 commit bde7062
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 9 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
args:
warn: false

- name: remount var_tmp
command: mount -o remount /var/tmp
args:
warn: false

- name: remount home
command: mount -o remount /home
args:
warn: false
- name: systemd daemon reload
systemd:
daemon_reload: true
Expand Down
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 bde7062

Please sign in to comment.