Fix incorrect systemd enabling in Patroni
This commit is contained in:
parent
4b179b66ed
commit
1c05c8729f
|
@ -11,11 +11,10 @@
|
|||
command: /usr/share/zookeeper/bin/zkCli.sh rmr /patroni
|
||||
ignore_errors: true
|
||||
|
||||
- name: ensure patroni services are enabled and started
|
||||
- name: start Patroni
|
||||
service:
|
||||
name: "{{ item }}.service"
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
with_items:
|
||||
- patroni
|
||||
|
||||
|
|
|
@ -74,11 +74,11 @@
|
|||
run_once: yes
|
||||
when: bootstrap is defined and bootstrap
|
||||
|
||||
- name: ensure patroni services are enabled and started
|
||||
- name: start but disable services (managed by PVC)
|
||||
service:
|
||||
name: "{{ item }}.service"
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: no
|
||||
with_items:
|
||||
- patroni
|
||||
|
||||
|
|
Loading…
Reference in New Issue