Fix incorrect systemd enabling in Patroni

This commit is contained in:
Joshua Boniface 2021-01-28 16:28:02 -05:00
parent 4b179b66ed
commit 1c05c8729f
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