Fix incorrect systemd enabling in Patroni
This commit is contained in:
parent
8d41650619
commit
0bf9c6209c
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue