mirror of https://github.com/ceph/ceph-ansible.git
Improve Handler support
Now proper commands/actions are used per hosts and groups. Signed-off-by: Sébastien Han <sebastien.han@enovance.com>pull/222/head
parent
a397c65b74
commit
559e3b921d
|
@ -2,10 +2,22 @@
|
||||||
- name: update apt cache
|
- name: update apt cache
|
||||||
apt: update-cache=yes
|
apt: update-cache=yes
|
||||||
|
|
||||||
- name: restart ceph
|
- name: restart ceph mons
|
||||||
command: service ceph restart
|
command: service ceph restart mon
|
||||||
when: socket.rc == 0
|
when: socket.rc == 0 and 'mons' in group_names
|
||||||
|
|
||||||
- name: restart ceph-osd-all on ubuntu
|
- name: restart ceph osds
|
||||||
shell: service ceph restart ; service ceph-osd-all restart
|
command: service ceph restart osd
|
||||||
when: socket.rc == 0 and ansible_distribution == 'Ubuntu'
|
when: socket.rc == 0 and 'osds' in group_names
|
||||||
|
|
||||||
|
- name: restart ceph osds on ubuntu
|
||||||
|
command: restart ceph-osd-all
|
||||||
|
when: socket.rc == 0 and ansible_distribution == 'Ubuntu' and 'osds' in group_names
|
||||||
|
|
||||||
|
- name: restart ceph mdss
|
||||||
|
command: service ceph restart mds
|
||||||
|
when: socket.rc == 0 and 'mdss' in group_names
|
||||||
|
|
||||||
|
- name: restart ceph rgws
|
||||||
|
command: /etc/init.d/radosgw restart
|
||||||
|
when: socket.rc == 0 and 'rgws' in group_names
|
||||||
|
|
|
@ -37,5 +37,8 @@
|
||||||
group=root
|
group=root
|
||||||
mode=0644
|
mode=0644
|
||||||
notify:
|
notify:
|
||||||
- restart ceph
|
- restart ceph mons
|
||||||
- restart ceph-osd-all on ubuntu
|
- restart ceph osds
|
||||||
|
- restart ceph osds on ubuntu
|
||||||
|
- restart ceph mdss
|
||||||
|
- restart ceph rgws
|
||||||
|
|
Loading…
Reference in New Issue