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: