Skip to content

Commit

Permalink
Merge pull request #23 from siemens/siemens/feat/r_2.2.17_masking_ser…
Browse files Browse the repository at this point in the history
…vice

Fixing issue #22
  • Loading branch information
uk-bolly authored Jan 30, 2024
2 parents 53b254a + 710425b commit a95bdb1
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit a95bdb1

Please sign in to comment.