Skip to content

Commit

Permalink
Merge pull request #6 from ansible-lockdown/devel
Browse files Browse the repository at this point in the history
merge fixes from devel
  • Loading branch information
uk-bolly authored Aug 30, 2023
2 parents b2e41e9 + cab1f4c commit b233269
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 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
7 changes: 6 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Amazon 2023 CIS - 26th June 2023

## Initial release
## 0.91

- issue #2 thanks to @babinskiy
- moved to self hosted action after forking from arillso

## Initial release 0.9
9 changes: 9 additions & 0 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@
ansible.builtin.set_fact:
grub2_path: /etc/grub2-efi.cfg
when: amzn2023cis_efi_boot.stat.exists
when:
- amzn2023cis_rule_1_4_1
tags:
- always

- name: "PRELIM | Update to latest gpg keys"
ansible.builtin.package:
Expand Down Expand Up @@ -260,3 +264,8 @@
manager: auto
tags:
- always

- name: "PRELIM | Set audit to not run if amazon 2023"
ansible.builtin.set_fact:
run_audit: false
when: ansible_distribution_major_version == '2023'
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 b233269

Please sign in to comment.