From 0927671781f6875926dac2e5f4bb10816e67070c Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 18 Sep 2017 21:04:23 +0100 Subject: xci: provision-vm-nodes: Use sudo to remove the XCI directory Since I00d77e1fc62cccda7920af3469af9d44247780f4 the entire XCI_DEVEL_ROOT is being removed. However, some of the files are owned by root so we need elevated privileges to remove these files and directories Change-Id: Ie10018ded198b922077e38fa5776fca098418192 Signed-off-by: Markos Chandras --- xci/playbooks/provision-vm-nodes.yml | 11 +++++++++-- 1 file 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 @@ -7,6 +7,15 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +- 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 @@ -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 }}" } -- cgit 1.2.3-korg