Don't try to do crazy restart ordering, it fails
This commit is contained in:
parent
45185c5a16
commit
a557b12e1c
|
@ -19,33 +19,22 @@
|
||||||
name: patroni
|
name: patroni
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
# Restart ceph-mon, but sequentially one-host-at-a-time with a 15s wait in between; this provides
|
|
||||||
# plenty of time for the primary state to switch around without putting the cluster in a
|
|
||||||
# no-primary state
|
|
||||||
- name: restart ceph-mon
|
- name: restart ceph-mon
|
||||||
shell: systemctl restart ceph-mon@{{ play_host }} && sleep 15
|
service:
|
||||||
run_once: true
|
name: ceph-mon@{{ ansible_hostname }}
|
||||||
delegate_to: "{{ play_host }}"
|
state: restarted
|
||||||
with_items: "{{ play_hosts }}"
|
|
||||||
loop_control:
|
|
||||||
loop_var: play_host
|
|
||||||
|
|
||||||
# Restart ceph-mgr, but sequentially one-host-at-a-time with a 15s wait in between; this provides
|
|
||||||
# plenty of time for the primary state to switch around without putting the cluster in a
|
|
||||||
# no-primary state
|
|
||||||
- name: restart ceph-mgr
|
- name: restart ceph-mgr
|
||||||
shell: systemctl restart ceph-mgr@{{ play_host }} && sleep 15
|
service:
|
||||||
run_once: true
|
name: ceph-mgr@{{ ansible_hostname }}
|
||||||
delegate_to: "{{ play_host }}"
|
state: restarted
|
||||||
with_items: "{{ play_hosts }}"
|
|
||||||
loop_control:
|
|
||||||
loop_var: play_host
|
|
||||||
|
|
||||||
# Restart pvcd, but sequentially one-host-at-a-time with a 15s wait in between; this provides
|
# Restart pvcd, but sequentially one-host-at-a-time with a 15s wait in between; this provides
|
||||||
# plenty of time for the primary state to switch around without putting the cluster in a
|
# plenty of time for the primary state to switch around without putting the cluster in a
|
||||||
# no-primary state
|
# no-primary state
|
||||||
- name: restart pvcd
|
- name: restart pvcd
|
||||||
shell: systemctl restart pvcd && sleep 15
|
shell: systemctl restart pvcd && sleep 15
|
||||||
|
ignore_errors: true
|
||||||
run_once: true
|
run_once: true
|
||||||
delegate_to: "{{ play_host }}"
|
delegate_to: "{{ play_host }}"
|
||||||
with_items: "{{ play_hosts }}"
|
with_items: "{{ play_hosts }}"
|
||||||
|
|
Loading…
Reference in New Issue