diff options
author | Markos Chandras <mchandras@suse.de> | 2017-09-19 12:11:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-19 12:11:48 +0000 |
commit | 9b0b4e1979633c4320dc0dea0707910c36cb056d (patch) | |
tree | 2094b91727294d20292326ad01544554e12f797f /xci | |
parent | 2c63c226780d9626ec3dce4b7e16b84815baad9b (diff) | |
parent | 0927671781f6875926dac2e5f4bb10816e67070c (diff) |
Merge "xci: provision-vm-nodes: Use sudo to remove the XCI directory"
Diffstat (limited to 'xci')
-rw-r--r-- | xci/playbooks/provision-vm-nodes.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xci/playbooks/provision-vm-nodes.yml b/xci/playbooks/provision-vm-nodes.yml index 5e897e17..0419dcfc 100644 --- a/xci/playbooks/provision-vm-nodes.yml +++ b/xci/playbooks/provision-vm-nodes.yml @@ -10,6 +10,15 @@ - hosts: localhost connection: local gather_facts: true + become: yes + vars_files: + - ../var/opnfv.yml + roles: + - role: remove-folders + +- hosts: localhost + connection: local + gather_facts: true vars_files: - ../var/opnfv.yml pre_tasks: @@ -17,8 +26,6 @@ include_vars: file: ../var/{{ ansible_os_family }}.yml roles: - # using these roles here ensures that we can reuse this playbook in different context - - role: remove-folders - { role: clone-repository, project: "opnfv/releng-xci", repo: "{{ OPNFV_RELENG_GIT_URL }}", dest: "{{ OPNFV_RELENG_PATH }}", version: "{{ OPNFV_RELENG_VERSION }}" } - { role: clone-repository, project: "opnfv/bifrost", repo: "{{ OPENSTACK_BIFROST_GIT_URL }}", dest: "{{ OPENSTACK_BIFROST_PATH }}", version: "{{ OPENSTACK_BIFROST_VERSION }}" } |