From 02c9c76a83694bec3e0a45f3166e627e5a6fc15a Mon Sep 17 00:00:00 2001 From: Jay Olinares Date: Fri, 21 Apr 2023 09:04:13 +1000 Subject: [PATCH] Molecule test on container is failing due to modprobe Signed-off-by: Jay Olinares --- tasks/section_1/cis_1.1.x.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/section_1/cis_1.1.x.yml b/tasks/section_1/cis_1.1.x.yml index 4a61622..c4826c9 100644 --- a/tasks/section_1/cis_1.1.x.yml +++ b/tasks/section_1/cis_1.1.x.yml @@ -16,6 +16,7 @@ community.general.modprobe: name: usb-storage state: absent + when: not system_is_container - name: "1.1.9 | PATCH | Disable USB Storage | blacklist" ansible.builtin.lineinfile: