From fdbe3f03656f311587de526d2149a2c76165c0c7 Mon Sep 17 00:00:00 2001 From: Dan D Date: Fri, 20 Oct 2023 20:37:09 -0700 Subject: [PATCH] if timesyncd is not installed 2.1.1.1 errors Signed-off-by: Dan D --- tasks/section_2/cis_2.1.1.x.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/section_2/cis_2.1.1.x.yml b/tasks/section_2/cis_2.1.1.x.yml index 01f5fd74..dc8171ee 100644 --- a/tasks/section_2/cis_2.1.1.x.yml +++ b/tasks/section_2/cis_2.1.1.x.yml @@ -23,7 +23,10 @@ enabled: false masked: true daemon_reload: true - when: ubtu22cis_time_sync_tool != "systemd-timesyncd" + when: + - ubtu22cis_time_sync_tool != "systemd-timesyncd" + - "'systemd-timesyncd' in ansible_facts.packages" + when: - ubtu22cis_rule_2_1_1_1 tags: