mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #697 from fultonj/rolling_update_sysvinit
sysvinit changes to rolling update playbookpull/698/head
commit
aad93b4ba5
|
@ -30,7 +30,8 @@
|
|||
post_tasks:
|
||||
- name: Check if sysvinit
|
||||
stat: >
|
||||
path=/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/sysvinit
|
||||
path=/etc/rc?.d/S??ceph
|
||||
follow=yes
|
||||
register: monsysvinit
|
||||
|
||||
- name: Check if upstart
|
||||
|
@ -49,7 +50,6 @@
|
|||
service: >
|
||||
name=ceph
|
||||
state=restarted
|
||||
args=mon
|
||||
when: monsysvinit.stat.exists == True
|
||||
|
||||
- name: restart monitor(s)
|
||||
|
@ -57,6 +57,13 @@
|
|||
name=ceph
|
||||
state=restarted
|
||||
args=mon
|
||||
when: not ansible_os_family == "RedHat"
|
||||
|
||||
- name: restart monitor(s)
|
||||
service: >
|
||||
name=ceph
|
||||
state=restarted
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: select a running monitor
|
||||
set_fact: mon_host={{ item }}
|
||||
|
@ -113,7 +120,6 @@
|
|||
service: >
|
||||
name=ceph
|
||||
state=restarted
|
||||
args=osd
|
||||
when: osdsysvinit.rc == 0
|
||||
|
||||
- name: Waiting for clean PGs...
|
||||
|
|
Loading…
Reference in New Issue