From 2c09971cc2caebc8900106ea67ce6d87e72cbca7 Mon Sep 17 00:00:00 2001 From: Svennd Date: Wed, 22 May 2024 10:28:56 +0200 Subject: [PATCH] 2.4 : socket vs sockets This looks for all active sockets, but the command is singular Signed-off-by: Svennd --- tasks/section_2/cis_2.4.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_2/cis_2.4.yml b/tasks/section_2/cis_2.4.yml index ac56312..15048f6 100644 --- a/tasks/section_2/cis_2.4.yml +++ b/tasks/section_2/cis_2.4.yml @@ -10,7 +10,7 @@ register: rhel9cis_2_4_services - name: "2.4 | AUDIT | Ensure nonessential services listening on the system are removed or masked | Get list of sockets" - ansible.builtin.shell: systemctl list-units --type=sockets + ansible.builtin.shell: systemctl list-units --type=socket changed_when: false failed_when: false check_mode: false