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 <pabelanger@redhat.com>
This commit is contained in:
parent
a3da42da94
commit
ff6268f4f1
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user