Skip to content

Commit

Permalink
Merge pull request #4 from ansible-lockdown/issue_#2
Browse files Browse the repository at this point in the history
Issue #2
  • Loading branch information
uk-bolly authored Aug 30, 2023
2 parents a909ca6 + a76d552 commit fad7186
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/devel_pipeline_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

# Run the ansible playbook
- name: Run_Ansible_Playbook
uses: arillso/action.playbook@master
uses: ansible-lockdown/action.playbook@main
with:
playbook: site.yml
inventory: .github/workflows/github_linux_IaC/hosts.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_pipeline_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

# Run the ansible playbook
- name: Run_Ansible_Playbook
uses: arillso/action.playbook@master
uses: ansible-lockdown/action.playbook@main
with:
playbook: site.yml
inventory: .github/workflows/github_linux_IaC/hosts.yml
Expand Down
2 changes: 2 additions & 0 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
ansible.builtin.set_fact:
grub2_path: /etc/grub2-efi.cfg
when: amzn2023cis_efi_boot.stat.exists
tags:
- always

- name: "PRELIM | Update to latest gpg keys"
ansible.builtin.package:
Expand Down
4 changes: 2 additions & 2 deletions tasks/section_1/cis_1.4.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
- name: "1.4.1 | PATCH | Ensure permissions on bootloader config are configured | efi boot"
ansible.builtin.lineinfile:
path: /etc/fstab
regexp: (.*\/boot\/efi\s+vfat\s+defaults)
regexp: '(.*\/boot\/efi\s+vfat\s+defaults,.*)umask=00\d\d,(fmask=\d\d\d\d,|)(.*$)'
backrefs: true
line: '<g>\1,umask=0027,fmask=0077,uid=0,gid=0 0 0'
line: '\1umask=0027,fmask=0077,\3'
when: not amzn2023cis_legacy_boot
when:
- amzn2023cis_rule_1_4_1
Expand Down

0 comments on commit fad7186

Please sign in to comment.