From ff6268f4f159337217e6a8f11e73de27de76e727 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 23 Sep 2017 12:17:27 -0400 Subject: [PATCH] Use sudo when making sure /opt/wheel exists We need sudo permissons to create /opt/wheel for build-wheel-mirror jobs. Change-Id: I3676a82ee8b0a7bb06896b79bdf26f61d9b75534 Signed-off-by: Paul Belanger --- roles/build-wheels/tasks/main.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/roles/build-wheels/tasks/main.yaml b/roles/build-wheels/tasks/main.yaml index 22bbfd7cb6..02ec4f2127 100644 --- a/roles/build-wheels/tasks/main.yaml +++ b/roles/build-wheels/tasks/main.yaml @@ -2,15 +2,11 @@ set_fact: wheel_python: "python{{ inventory_hostname[-1] }}" -- name: Ensure old version of wheel dir is gone - file: - path: "{{ wheel_dir }}" - state: absent - - name: Ensure wheel dir exists file: path: "{{ wheel_dir }}" state: directory + become: yes - name: Build the wheel mirror shell: bash -x scripts/wheel-build.sh {{ wheel_dir }} {{ wheel_python }}