0515041465
Otherwise this role could fail when tox is not installed in PATH. Also updates the default behaviour to only collect the environments configured with 'envlist' in tox.ini and collects all environments if the envlist is set to 'ALL'. Change-Id: I60bcc25cb853d2db3ee767a719b9ac54e421532e
18 lines
451 B
YAML
18 lines
451 B
YAML
- hosts: all
|
|
name: Remove any pre-installed tox
|
|
tasks:
|
|
- name: Remove tox package with pip
|
|
shell: pip uninstall -y tox
|
|
become: true
|
|
failed_when: false
|
|
- name: Remove tox package with pip3
|
|
shell: pip3 uninstall -y tox
|
|
become: true
|
|
failed_when: false
|
|
- name: Verify tox is not installed
|
|
command: "tox --version"
|
|
register: result
|
|
failed_when: result.rc == 0
|
|
roles:
|
|
- ensure-tox
|