Paul Belanger ff6268f4f1
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>
2017-09-23 12:17:27 -04:00

13 lines
317 B
YAML

- name: Select python version to build
set_fact:
wheel_python: "python{{ inventory_hostname[-1] }}"
- 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 }}