Don't try to do crazy restart ordering, it fails

This commit is contained in:
Joshua Boniface 2019-12-24 14:15:52 -05:00
parent 73617fa1a6
commit 22c6c13f0f
1 changed files with 7 additions and 18 deletions

View File

@ -19,33 +19,22 @@
name: patroni
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
shell: systemctl restart ceph-mon@{{ play_host }} && sleep 15
run_once: true
delegate_to: "{{ play_host }}"
with_items: "{{ play_hosts }}"
loop_control:
loop_var: play_host
service:
name: ceph-mon@{{ ansible_hostname }}
state: restarted
# 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
shell: systemctl restart ceph-mgr@{{ play_host }} && sleep 15
run_once: true
delegate_to: "{{ play_host }}"
with_items: "{{ play_hosts }}"
loop_control:
loop_var: play_host
service:
name: ceph-mgr@{{ ansible_hostname }}
state: restarted
# 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
# no-primary state
- name: restart pvcd
shell: systemctl restart pvcd && sleep 15
ignore_errors: true
run_once: true
delegate_to: "{{ play_host }}"
with_items: "{{ play_hosts }}"