mirror of https://github.com/ceph/ceph-ansible.git
purge-cluster: make stop service work on ubuntu
reworked the stop sequence by using ids instead of calling the 'all' function which does not seem to be working all the time. Signed-off-by: Sébastien Han <seb@redhat.com>pull/646/head
parent
1e82230ff2
commit
14e957dfec
|
@ -90,8 +90,8 @@
|
||||||
osd_group_name in group_names
|
osd_group_name in group_names
|
||||||
|
|
||||||
- name: stop ceph mons with systemd
|
- name: stop ceph mons with systemd
|
||||||
service:
|
service:
|
||||||
name: ceph-mon@{{ ansible_hostname }}
|
name: ceph-mon@{{ ansible_hostname }}
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
when:
|
when:
|
||||||
|
@ -100,8 +100,8 @@
|
||||||
mon_group_name in group_names
|
mon_group_name in group_names
|
||||||
|
|
||||||
- name: stop ceph mdss with systemd
|
- name: stop ceph mdss with systemd
|
||||||
service:
|
service:
|
||||||
name: ceph-mds@{{ ansible_hostname }}
|
name: ceph-mds@{{ ansible_hostname }}
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when:
|
||||||
ansible_os_family == 'RedHat' and
|
ansible_os_family == 'RedHat' and
|
||||||
|
@ -132,19 +132,20 @@
|
||||||
|
|
||||||
# Ubuntu 14.04
|
# Ubuntu 14.04
|
||||||
- name: stop ceph osds on ubuntu
|
- name: stop ceph osds on ubuntu
|
||||||
command: stop ceph-osd-all
|
command: stop ceph-osd id={{ item }}
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == 'Ubuntu' and
|
ansible_distribution == 'Ubuntu' and
|
||||||
osd_group_name in group_names
|
osd_group_name in group_names
|
||||||
|
with_items: "{{ osd_ids.stdout_lines }}"
|
||||||
|
|
||||||
- name: stop ceph mons on ubuntu
|
- name: stop ceph mons on ubuntu
|
||||||
command: stop ceph-mon-all
|
command: stop ceph-mon id={{ ansible_hostname }}
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when:
|
when:
|
||||||
ansible_distribution == 'Ubuntu' and
|
ansible_distribution == 'Ubuntu' and
|
||||||
mon_group_name in group_names
|
mon_group_name in group_names
|
||||||
|
|
||||||
- name: stop ceph mdss on ubuntu
|
- name: stop ceph mdss on ubuntu
|
||||||
command: stop ceph-mds-all
|
command: stop ceph-mds-all
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
Loading…
Reference in New Issue