Add wait to service restarts
This commit is contained in:
parent
c74af55d87
commit
7136229536
|
@ -530,20 +530,12 @@
|
||||||
become: no
|
become: no
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: restart pvcnoded on all nodes
|
- name: restart PVC daemons on all nodes
|
||||||
service:
|
shell: "systemctl restart pvchealthd && systemctl restart pvcworkerd && systemctl restart pvcnoded && sleep 30"
|
||||||
name: pvcnoded
|
|
||||||
state: restarted
|
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ item }}"
|
||||||
loop: "{{ ansible_play_hosts }}"
|
loop: "{{ ansible_play_hosts }}"
|
||||||
|
|
||||||
- name: wait 30 seconds for system to stabilize
|
|
||||||
pause:
|
|
||||||
seconds: 30
|
|
||||||
become: no
|
|
||||||
connection: local
|
|
||||||
|
|
||||||
- name: set first node as primary coordinator
|
- name: set first node as primary coordinator
|
||||||
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
|
Loading…
Reference in New Issue