Fix incorrect systemd enabling in Patroni

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:25 -04:00
parent 8d41650619
commit 0bf9c6209c
2 changed files with 5 additions and 6 deletions

View File

@ -11,11 +11,10 @@
command: /usr/share/zookeeper/bin/zkCli.sh rmr /patroni command: /usr/share/zookeeper/bin/zkCli.sh rmr /patroni
ignore_errors: true ignore_errors: true
- name: ensure patroni services are enabled and started - name: start Patroni
service: service:
name: "{{ item }}.service" name: "{{ item }}"
state: started state: started
enabled: yes
with_items: with_items:
- patroni - patroni

View File

@ -74,11 +74,11 @@
run_once: yes run_once: yes
when: bootstrap is defined and bootstrap when: bootstrap is defined and bootstrap
- name: ensure patroni services are enabled and started - name: start but disable services (managed by PVC)
service: service:
name: "{{ item }}.service" name: "{{ item }}"
state: started state: started
enabled: yes enabled: no
with_items: with_items:
- patroni - patroni