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:
Paul Belanger 2017-09-23 12:17:27 -04:00
parent a3da42da94
commit ff6268f4f1
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -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 }}