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

Fixing issue https://github.com/ansible-lockdown/AMAZON2023-CIS/issues/22 #23

Merged
Merged
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
11 changes: 10 additions & 1 deletion tasks/section_2/cis_2.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,23 @@
when:
- amzn2023cis_rpc_server == "remove"

- name: "2.2.17 | PATCH | Ensure rpcbind is not installed or the rpcbind services are masked | mask service"
- name: "2.2.17 | PATCH | Ensure rpcbind is not installed or the rpcbind services are masked | mask socket"
ansible.builtin.systemd:
name: rpcbind.socket
masked: true
state: stopped
daemon_reload: true
when:
- amzn2023cis_rpc_server == "mask"

- name: "2.2.17 | PATCH | Ensure rpcbind is not installed or the rpcbind services are masked | mask service"
ansible.builtin.systemd:
name: rpcbind.service
masked: true
state: stopped
daemon_reload: true
when:
- amzn2023cis_rpc_server == "mask"
when:
- "'rpcbind' in ansible_facts.packages"
- amzn2023cis_rule_2_2_17
Expand Down
Loading