From 592fbbd69616339c96e412a7d0329d1d82a222b6 Mon Sep 17 00:00:00 2001 From: Diana-Maria Dumitru Date: Thu, 7 Dec 2023 11:30:54 +0200 Subject: [PATCH] Fixing issue https://code.siemens.com/infosec-pss-gov/security-crafter-baseline-automations/ansible-lockdown/amazon2023-cis/-/issues/2 by using `import_tasks` module so as the rules will get added and executed! Signed-off-by: Diana-Maria Dumitru --- tasks/section_1/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/section_1/main.yml b/tasks/section_1/main.yml index f6acd63..a9db36c 100644 --- a/tasks/section_1/main.yml +++ b/tasks/section_1/main.yml @@ -54,7 +54,7 @@ file: cis_1.5.x.yml - name: "SECTION | 1.6 | Mandatory Access Control" - ansible.builtin.include_tasks: + ansible.builtin.import_tasks: file: cis_1.6.1.x.yml when: not amzn2023cis_selinux_disable @@ -67,5 +67,5 @@ file: cis_1.8.yml - name: "SECTION | 1.9 | Crypto policies" - ansible.builtin.include_tasks: + ansible.builtin.import_tasks: file: cis_1.9.yml