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 <tm@core.io>
This commit is contained in:
Thomas Merkel 2023-04-25 19:27:37 +02:00
parent 9d7cfc9661
commit 2380cd46c9
No known key found for this signature in database
GPG key ID: 12AE4593D7A63833

View file

@ -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: