mirror of https://github.com/ceph/ceph-ansible.git
13 lines
357 B
YAML
13 lines
357 B
YAML
---
|
|
|
|
- name: "update apt cache"
|
|
action: apt update-cache=yes
|
|
|
|
- name: "restart ceph"
|
|
shell: service ceph restart ; service ceph-osd-all restart
|
|
when: socket.rc == 0 and ansible_distribution == 'Ubuntu'
|
|
|
|
- name: "restart ceph"
|
|
command: service ceph restart
|
|
when: socket.rc == 0 and ansible_distribution == 'Debian' or ansible_os_family == 'RedHat'
|