2014-03-04 02:08:51 +08:00
|
|
|
---
|
2014-09-05 03:14:11 +08:00
|
|
|
- name: update apt cache
|
2015-09-04 00:18:53 +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
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
2016-03-03 18:03:03 +08:00
|
|
|
name: ceph-mon@{{ monitor_name }}
|
2015-11-21 05:34:29 +08:00
|
|
|
state: restarted
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- socket.rc == 0
|
|
|
|
- mon_group_name in group_names
|
2014-08-20 20:04:34 +08:00
|
|
|
|
2015-11-21 05:34:29 +08:00
|
|
|
# This does not just restart OSDs but everything else too. Unfortunately
|
|
|
|
# at this time the ansible role does not have an OSD id list to use
|
|
|
|
# for restarting them specifically.
|
2017-01-20 17:14:35 +08:00
|
|
|
- name: restart ceph osds
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
|
|
|
name: ceph.target
|
|
|
|
state: restarted
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- socket.rc == 0
|
|
|
|
- osd_group_name in group_names
|
2015-07-01 00:07:03 +08:00
|
|
|
|
2015-03-03 00:13:30 +08:00
|
|
|
- name: restart ceph mdss
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
2016-03-03 18:03:03 +08:00
|
|
|
name: ceph-mds@{{ mds_name }}
|
2015-11-21 05:34:29 +08:00
|
|
|
state: restarted
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- socket.rc == 0
|
|
|
|
- mds_group_name in group_names
|
2015-07-01 00:07:03 +08:00
|
|
|
|
2015-03-03 00:13:30 +08:00
|
|
|
- name: restart ceph rgws
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
|
|
|
name: ceph-rgw@{{ ansible_hostname }}
|
|
|
|
state: restarted
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- socketrgw.rc == 0
|
|
|
|
- rgw_group_name in group_names
|
2015-08-03 23:39:57 +08:00
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
- name: restart ceph nfss
|
|
|
|
service:
|
|
|
|
name: nfs-ganesha
|
|
|
|
state: restarted
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|