mirror of https://github.com/ceph/ceph-ansible.git
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
---
|
|
- name: update apt cache
|
|
apt: update-cache=yes
|
|
|
|
- name: restart ceph mons
|
|
command: service ceph restart mon
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution != 'Ubuntu' and
|
|
mon_group_name in group_names
|
|
|
|
- name: restart ceph mons on ubuntu
|
|
command: restart ceph-mon-all
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution == 'Ubuntu' and
|
|
mon_group_name in group_names
|
|
|
|
- name: restart ceph osds
|
|
command: service ceph restart osd
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution != 'Ubuntu' and
|
|
osd_group_name in group_names
|
|
|
|
- name: restart ceph osds on ubuntu
|
|
command: restart ceph-osd-all
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution == 'Ubuntu' and
|
|
osd_group_name in group_names
|
|
|
|
- name: restart ceph mdss on ubuntu
|
|
command: restart ceph-mds-all
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution == 'Ubuntu' and
|
|
mds_group_name in group_names
|
|
|
|
- name: restart ceph mdss
|
|
command: service ceph restart mds
|
|
when:
|
|
socket.rc == 0 and
|
|
ansible_distribution != 'Ubuntu' and
|
|
mds_group_name in group_names
|
|
|
|
- name: restart ceph rgws on ubuntu
|
|
command: restart ceph-all
|
|
when:
|
|
socketrgw.rc == 0 and
|
|
ansible_distribution == 'Ubuntu' and
|
|
rgw_group_name in group_names
|
|
|
|
- name: restart ceph rgws
|
|
command: /etc/init.d/radosgw restart
|
|
when:
|
|
socketrgw.rc == 0 and
|
|
ansible_distribution != 'Ubuntu' and
|
|
rgw_group_name in group_names
|
|
|
|
- name: restart ceph rgws on red hat
|
|
command: /etc/init.d/ceph-radosgw restart
|
|
when:
|
|
socketrgw.rc == 0 and
|
|
ansible_os_family == 'RedHat' and
|
|
rgw_group_name in group_names
|