![Ian Wienand](/assets/img/avatar_default.png)
This was added with I55ef79bf9c5af9e4d1da24ed654821277edb663b but unfortunately breaks the OpenDev use where this runs on the executor and doesn't have sudo. Let's just leave it the way it was. Change-Id: I2cf4224228860b8a2cddd360636bb8633967b07e
23 lines
651 B
YAML
23 lines
651 B
YAML
- name: Check for twine install
|
|
shell: |
|
|
command -v {{ twine_executable }} ~/.local/bin/twine || exit 1
|
|
args:
|
|
executable: /bin/bash
|
|
failed_when: false
|
|
register: register_twine
|
|
|
|
- name: Set pypi_twine_executable
|
|
set_fact:
|
|
pypi_twine_executable: "{{ register_twine.stdout_lines[0] }}"
|
|
when: register_twine.rc == 0
|
|
|
|
- name: Ensure twine is installed
|
|
block:
|
|
- name: Ensure twine is installed
|
|
command: "{{ twine_python }} -m pip install twine!=1.12.0 requests-toolbelt!=0.9.0 --user"
|
|
|
|
- name: Set pypi_twine_executable
|
|
set_fact:
|
|
pypi_twine_executable: ~/.local/bin/twine
|
|
when: register_twine.rc != 0
|