ceph-ansible/roles/ceph-common/handlers/main.yml

12 lines
291 B
YAML
Raw Normal View History

---
2014-09-05 03:14:11 +08:00
- name: update apt cache
apt: update-cache=yes
2014-09-05 03:14:11 +08:00
- name: restart ceph
command: service ceph restart
when: socket.rc == 0
2014-09-05 03:14:11 +08:00
- name: restart ceph-osd-all on ubuntu
shell: service ceph restart ; service ceph-osd-all restart
when: socket.rc == 0 and ansible_distribution == 'Ubuntu'