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
Sébastien Han 2016-03-24 11:37:35 +01:00
parent 1e82230ff2
commit 14e957dfec
1 changed files with 8 additions and 7 deletions

View File

@ -132,14 +132,15 @@
# Ubuntu 14.04
- name: stop ceph osds on ubuntu
command: stop ceph-osd-all
command: stop ceph-osd id={{ item }}
failed_when: false
when:
ansible_distribution == 'Ubuntu' and
osd_group_name in group_names
with_items: "{{ osd_ids.stdout_lines }}"
- name: stop ceph mons on ubuntu
command: stop ceph-mon-all
command: stop ceph-mon id={{ ansible_hostname }}
failed_when: false
when:
ansible_distribution == 'Ubuntu' and