From 2380cd46c990d5ac489fee7e82fa45de24fb872c Mon Sep 17 00:00:00 2001 From: Thomas Merkel Date: Tue, 25 Apr 2023 19:27:37 +0200 Subject: [PATCH] Use correct backtick for regex escape Depends on the ansible version regex escape (via slash) require correct backticks to work. Otherwise it would result in a syntax error. Signed-off-by: Thomas Merkel --- tasks/section_4/cis_4.2.2.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_4/cis_4.2.2.x.yml b/tasks/section_4/cis_4.2.2.x.yml index 2c9355b..84513b2 100644 --- a/tasks/section_4/cis_4.2.2.x.yml +++ b/tasks/section_4/cis_4.2.2.x.yml @@ -185,7 +185,7 @@ - name: "4.2.2.7 | PATCH | Ensure journald default file permissions configured | Set permission" ansible.builtin.lineinfile: path: "{{ systemd_conf_file | default('/usr/lib/tmpfiles.d/systemd.conf') }}" - regexp: "^z \/var\/log\/journal\/%m\/system.journal (!?06(0|4)0) root" + regexp: '^z \/var\/log\/journal\/%m\/system.journal (!?06(0|4)0) root' line: 'z /var/log/journal/%m/system.journal 0640 root systemd-journal - -' when: