zuul-jobs/test-playbooks/tox/reinstall-tox.yaml
Ian Wienand 7a66a26b77
ansible-lint: fix a bunch of command-instead-of-shell errors
These all trigger command-instead-of-shell for ansible-lint 6.12.0.
It seems a few were ignored with warnings with
I4e415cbd34f0f4cb15857051bf95458e0316de86.

I don't see why these can't be command: for consistency

Change-Id: Ib0f590b461d2a5a7d9bb8bdddcbbfb2230cc3d1c
2023-02-03 15:06:03 +11:00

18 lines
455 B
YAML

- hosts: all
name: Remove any pre-installed tox
tasks:
- name: Remove tox package with pip
command: pip uninstall -y tox
become: true
failed_when: false
- name: Remove tox package with pip3
command: 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