From 5166856c692434d5fcf124518392a7352628f2f0 Mon Sep 17 00:00:00 2001 From: George Nalen Date: Thu, 17 Apr 2025 16:52:03 -0500 Subject: [PATCH] updated group ternary to be better defined for issue #33 Signed-off-by: George Nalen --- tasks/section_2/cis_2.4.1.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_2/cis_2.4.1.x.yml b/tasks/section_2/cis_2.4.1.x.yml index 99bb0d4..d32bf66 100644 --- a/tasks/section_2/cis_2.4.1.x.yml +++ b/tasks/section_2/cis_2.4.1.x.yml @@ -154,5 +154,5 @@ ansible.builtin.file: path: /etc/cron.allow owner: root - group: '{{ ("crontab" in discovered_cron_allow_status.stat.gr_name ) | ternary(omit,"root") }}' + group: '{{ (discovered_cron_allow_status.stat.gr_name == "crontab") | ternary(omit,"root") }}' mode: 'u-x,g-wx,o-rwx'