Fix XML comments.

This commit is contained in:
Andreas B. Mundt 2023-04-19 12:47:32 +02:00
parent 2d6f1973bd
commit 5f59910cf2

View file

@ -11,6 +11,7 @@
- name: Configure pam_mount
blockinfile:
dest: /etc/security/pam_mount.conf.xml
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK" -->
block: |
<volume
fstype="cifs"
@ -52,7 +53,7 @@
ansible.builtin.replace:
path: /etc/security/pam_mount.conf.xml
regexp: '^(<logout wait="0" hup="no" term="no" kill="no" />)$'
replace: '#\1\n<logout wait="1000" hup="yes" term="yes" kill="yes" />'
replace: '<!-- \1 -->\n<logout wait="1000" hup="yes" term="yes" kill="yes" />'
- name: Kill all user processes on logout
ansible.builtin.lineinfile: