zuul-jobs/roles/ensure-twine/tasks/main.yaml
Sean McGinnis 58c84203f6
Revert "Add environment debugging to ensure-twine role"
This reverts commit a874df5865
and follow on fix 9674e1d442.

Change-Id: I6bcc4ca9025cd26f2c9c7bb5dce8e6dcf09db485
2019-04-26 10:35:22 -05:00

20 lines
579 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:
- name: Ensure twine is installed
command: "{{ twine_python }} -m pip install twine!=1.12.0 readme_renderer[md]!=23.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