diff --git a/rolling_update.yml b/rolling_update.yml index 7e89c4b43..b0f02573b 100644 --- a/rolling_update.yml +++ b/rolling_update.yml @@ -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...