Commit 9bbe877b authored by Chris Croome's avatar Chris Croome

fix for /bin/chgrp: cannot access '/var/run/saslauthd/'

parent aa0c47ab
......@@ -75,16 +75,23 @@
state: latest
update_cache: yes
- name: saslauthd line commented in /etc/systemd/system/xcauth.service
- name: saslauthd ExecStartPre line commented in /etc/systemd/system/xcauth.service
lineinfile:
path: /etc/systemd/system/xcauth.service
regexp: "^#?ExecStartPre"
line: "#ExecStartPre=-+/bin/chgrp sasl /var/run/saslauthd/"
register: xcauth_service_execstartpre
- name: saslauthd ExecStartPost line commented in /etc/systemd/system/xcauth.service
lineinfile:
path: /etc/systemd/system/xcauth.service
regexp: "^#?ExecStartPost"
line: "#ExecStartPost=/bin/chgrp sasl /var/run/saslauthd/"
register: xcauth_service
register: xcauth_service_execstartpost
- name: systemctl daemon-reload when /etc/systemd/system/xcauth.service changed
command: systemctl daemon-reload
when: xcauth_service.changed
when: xcauth_service_execstartpre.changed or xcauth_service_execstartpost.changed
- name: symlink xcauth prosody mod_auth_external.lua module
file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment