\r
- name: check for ceph-ansible source code existed\r
stat:\r
- path: /tmp/ceph-ansible\r
+ path: /opt/ceph-ansible\r
ignore_errors: yes\r
register: cephansibleexisted\r
\r
- name: download ceph-ansible source code\r
git:\r
repo: https://github.com/ceph/ceph-ansible.git\r
- dest: /tmp/ceph-ansible\r
+ dest: /opt/ceph-ansible\r
when:\r
- cephansibleexisted.stat.exists is undefined or cephansibleexisted.stat.exists == false\r
\r
- name: copy ceph inventory host into ceph-ansible directory\r
copy:\r
src: ../../../group_vars/ceph/ceph.hosts\r
- dest: /tmp/ceph-ansible/ceph.hosts\r
+ dest: /opt/ceph-ansible/ceph.hosts\r
\r
- name: copy ceph all.yml file into ceph-ansible group_vars directory\r
copy:\r
src: ../../../group_vars/ceph/all.yml\r
- dest: /tmp/ceph-ansible/group_vars/all.yml\r
+ dest: /opt/ceph-ansible/group_vars/all.yml\r
\r
- name: copy ceph osds.yml file into ceph-ansible group_vars directory\r
copy:\r
src: ../../../group_vars/ceph/osds.yml\r
- dest: /tmp/ceph-ansible/group_vars/osds.yml\r
+ dest: /opt/ceph-ansible/group_vars/osds.yml\r
\r
- name: copy site.yml.sample to site.yml in ceph-ansible\r
copy:\r
- src: /tmp/ceph-ansible/site.yml.sample\r
- dest: /tmp/ceph-ansible/site.yml\r
+ src: /opt/ceph-ansible/site.yml.sample\r
+ dest: /opt/ceph-ansible/site.yml\r
\r
- name: ping all hosts\r
shell: ansible all -m ping -i ceph.hosts\r
become: true\r
args:\r
- chdir: /tmp/ceph-ansible\r
+ chdir: /opt/ceph-ansible\r
\r
- name: run ceph-ansible playbook\r
shell: ansible-playbook site.yml -i ceph.hosts\r
become: true\r
args:\r
- chdir: /tmp/ceph-ansible\r
+ chdir: /opt/ceph-ansible\r
\r
- name: Check if ceph osd is running\r
shell: ps aux | grep ceph-osd | grep -v grep\r