X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fansible%2Froles%2Fosdsdock%2Fscenarios%2Fceph.yml;fp=ci%2Fansible%2Froles%2Fosdsdock%2Fscenarios%2Fceph.yml;h=2fa66b27f3316ee5afc16a1e09c1bb2d72aa9ba2;hb=561c0708b78eed8120b90f0221cd66730c9e8a74;hp=2f6348ef56f3ef3976f4dcd1144eac29606b4c40;hpb=1dc4e57ae38ea5a4989aeb382c3450a26363ead5;p=stor4nfv.git diff --git a/ci/ansible/roles/osdsdock/scenarios/ceph.yml b/ci/ansible/roles/osdsdock/scenarios/ceph.yml index 2f6348e..2fa66b2 100644 --- a/ci/ansible/roles/osdsdock/scenarios/ceph.yml +++ b/ci/ansible/roles/osdsdock/scenarios/ceph.yml @@ -6,48 +6,48 @@ - name: check for ceph-ansible source code existed stat: - path: /tmp/ceph-ansible + path: /opt/ceph-ansible ignore_errors: yes register: cephansibleexisted - name: download ceph-ansible source code git: repo: https://github.com/ceph/ceph-ansible.git - dest: /tmp/ceph-ansible + dest: /opt/ceph-ansible when: - cephansibleexisted.stat.exists is undefined or cephansibleexisted.stat.exists == false - name: copy ceph inventory host into ceph-ansible directory copy: src: ../../../group_vars/ceph/ceph.hosts - dest: /tmp/ceph-ansible/ceph.hosts + dest: /opt/ceph-ansible/ceph.hosts - name: copy ceph all.yml file into ceph-ansible group_vars directory copy: src: ../../../group_vars/ceph/all.yml - dest: /tmp/ceph-ansible/group_vars/all.yml + dest: /opt/ceph-ansible/group_vars/all.yml - name: copy ceph osds.yml file into ceph-ansible group_vars directory copy: src: ../../../group_vars/ceph/osds.yml - dest: /tmp/ceph-ansible/group_vars/osds.yml + dest: /opt/ceph-ansible/group_vars/osds.yml - name: copy site.yml.sample to site.yml in ceph-ansible copy: - src: /tmp/ceph-ansible/site.yml.sample - dest: /tmp/ceph-ansible/site.yml + src: /opt/ceph-ansible/site.yml.sample + dest: /opt/ceph-ansible/site.yml - name: ping all hosts shell: ansible all -m ping -i ceph.hosts become: true args: - chdir: /tmp/ceph-ansible + chdir: /opt/ceph-ansible - name: run ceph-ansible playbook shell: ansible-playbook site.yml -i ceph.hosts become: true args: - chdir: /tmp/ceph-ansible + chdir: /opt/ceph-ansible - name: Check if ceph osd is running shell: ps aux | grep ceph-osd | grep -v grep