mirror of https://github.com/ceph/ceph-ansible.git
85 lines
2.0 KiB
YAML
85 lines
2.0 KiB
YAML
---
|
|
- name: update apt cache
|
|
apt: update-cache=yes
|
|
|
|
- name: restart ceph mons
|
|
command: service ceph restart mon
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution != 'Ubuntu' and
|
|
mon_group_name in group_names
|
|
|
|
- name: restart ceph mons on ubuntu
|
|
command: restart ceph-mon-all
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution == 'Ubuntu' and
|
|
mon_group_name in group_names
|
|
|
|
- name: restart ceph osds
|
|
command: service ceph restart osd
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution != 'Ubuntu' and
|
|
osd_group_name in group_names
|
|
|
|
- name: restart ceph osds on ubuntu
|
|
command: restart ceph-osd-all
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution == 'Ubuntu' and
|
|
osd_group_name in group_names
|
|
|
|
- name: restart ceph mdss on ubuntu
|
|
command: restart ceph-mds-all
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution == 'Ubuntu' and
|
|
mds_group_name in group_names
|
|
|
|
- name: restart ceph mdss
|
|
command: service ceph restart mds
|
|
when:
|
|
socket.stat.exists and
|
|
ansible_distribution != 'Ubuntu' and
|
|
mds_group_name in group_names
|
|
|
|
- name: restart ceph rgws on ubuntu
|
|
command: restart ceph-all
|
|
when:
|
|
socketrgw.stat.exists and
|
|
ansible_distribution == 'Ubuntu' and
|
|
rgw_group_name in group_names
|
|
|
|
- name: restart ceph rgws
|
|
command: /etc/init.d/radosgw restart
|
|
when:
|
|
socketrgw.stat.exists 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.stat.exists and
|
|
ansible_os_family == 'RedHat' and
|
|
rgw_group_name in group_names
|
|
|
|
- name: restart apache2
|
|
service: >
|
|
name=apache2
|
|
state=restarted
|
|
enabled=yes
|
|
when:
|
|
ansible_os_family == 'Debian' and
|
|
rgw_group_name in group_names
|
|
|
|
- name: restart apache2
|
|
service: >
|
|
name=httpd
|
|
state=restarted
|
|
enabled=yes
|
|
when:
|
|
ansible_os_family == 'RedHat' and
|
|
rgw_group_name in group_names
|