From b0e038bd453b5a6d5a5c3b0f4b03a01dbf2ce394 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 20 Jun 2022 17:03:45 +0100 Subject: [PATCH] container var usage improvement Signed-off-by: Mark Bolwell --- tasks/section_1/cis_1.1.1.x.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/section_1/cis_1.1.1.x.yml b/tasks/section_1/cis_1.1.1.x.yml index f687901..d0a9eaa 100644 --- a/tasks/section_1/cis_1.1.1.x.yml +++ b/tasks/section_1/cis_1.1.1.x.yml @@ -14,7 +14,7 @@ modprobe: name: cramfs state: absent - when: ansible_connection != 'docker' + when: not system_is_container when: - rhel9cis_rule_1_1_1_1 tags: @@ -39,7 +39,7 @@ modprobe: name: squashfs state: absent - when: ansible_connection != 'docker' + when: not system_is_container when: - rhel9cis_rule_1_1_1_2 tags: @@ -64,7 +64,7 @@ modprobe: name: udf state: absent - when: ansible_connection != 'docker' + when: not system_is_container when: - rhel9cis_rule_1_1_1_3 tags: