]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
roles/paddles: do not ProtectHome=true for supervisord 669/head
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Wed, 9 Feb 2022 23:11:36 +0000 (00:11 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 10 Feb 2022 00:00:45 +0000 (01:00 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
roles/paddles/tasks/zypper_systems.yml

index 6f4a3eeacb83655aa507f0d8a6193717e6f5253f..3e8749329bc4e17778bb6a863e5748b7a6635544 100644 (file)
     state: started
     enabled: yes
 
+- name: Disable ProtectHome=true for supervisor
+  lineinfile:
+    path: "/etc/systemd/system/multi-user.target.wants/supervisord.service"
+    state: present
+    regexp: "^(ProtectHome=true.*)"
+    line: '#\1'
+    backrefs: yes
+
+- name: Reload supervisor
+  service:
+    name: supervisord
+    state: restarted
+    daemon_reload: yes
+
 - name: Setup hba_conf
   lineinfile:
     path: "/var/lib/pgsql/data/pg_hba.conf"