forked from ansible-lockdown/RHEL9-CIS
Merge pull request #56 from drscream/fix/regex-escape
Use correct backtick for regex escape
This commit is contained in:
commit
623d2fca61
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@
|
||||||
- name: "4.2.2.7 | PATCH | Ensure journald default file permissions configured | Set permission"
|
- name: "4.2.2.7 | PATCH | Ensure journald default file permissions configured | Set permission"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "{{ systemd_conf_file | default('/usr/lib/tmpfiles.d/systemd.conf') }}"
|
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 - -'
|
line: 'z /var/log/journal/%m/system.journal 0640 root systemd-journal - -'
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue