2014-03-04 02:08:51 +08:00
|
|
|
---
|
2014-09-05 03:14:11 +08:00
|
|
|
- name: update apt cache
|
2014-11-06 00:57:28 +08:00
|
|
|
apt: update-cache=yes
|
2014-03-04 02:08:51 +08:00
|
|
|
|
2015-03-03 00:13:30 +08:00
|
|
|
- name: restart ceph mons
|
|
|
|
command: service ceph restart mon
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
socket.rc == 0 and
|
2015-06-26 21:10:50 +08:00
|
|
|
mon_group_name in group_names
|
2014-08-20 20:04:34 +08:00
|
|
|
|
2015-03-03 00:13:30 +08:00
|
|
|
- name: restart ceph osds
|
|
|
|
command: service ceph restart osd
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
socket.rc == 0 and
|
2015-06-26 21:10:50 +08:00
|
|
|
osd_group_name in group_names
|
2015-03-03 00:13:30 +08:00
|
|
|
|
|
|
|
- name: restart ceph osds on ubuntu
|
|
|
|
command: restart ceph-osd-all
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
socket.rc == 0 and
|
|
|
|
ansible_distribution == 'Ubuntu' and
|
2015-06-26 21:10:50 +08:00
|
|
|
osd_group_name in group_names
|
2015-03-03 00:13:30 +08:00
|
|
|
|
|
|
|
- name: restart ceph mdss
|
|
|
|
command: service ceph restart mds
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
socket.rc == 0 and
|
2015-06-26 21:10:50 +08:00
|
|
|
mds_group_name in group_names
|
2015-03-03 00:13:30 +08:00
|
|
|
|
|
|
|
- name: restart ceph rgws
|
|
|
|
command: /etc/init.d/radosgw restart
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
socket.rc == 0 and
|
2015-06-26 21:10:50 +08:00
|
|
|
rgw_group_name in group_names
|