4c9a13df88
This didn't work as expected on executor. So, now pip install depending on the rc status of which. Change-Id: Icd9da523d220973c66bc7cb4fbbd9999ec6c0dd0 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
17 lines
419 B
YAML
17 lines
419 B
YAML
- name: Check for twine install
|
|
command: which twine
|
|
failed_when: false
|
|
register: register_twine
|
|
|
|
- name: Set pypi_twine_executable
|
|
set_fact:
|
|
pypi_twine_executable: "{{ register_twine.stdout }}"
|
|
when: register_twine.rc == 0
|
|
|
|
- name: Ensure twine is installed
|
|
block:
|
|
- command: pip install twine --user
|
|
- set_fact:
|
|
pypi_twine_executable: ~/.local/bin/twine
|
|
when: register_twine.rc != 0
|