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
|
|
|
|
when: socket.rc == 0 and 'mons' 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
|
|
|
|
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
|