Fix Python 2 removal for oqa, rvc and acr as well

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-11-26 12:35:25 -08:00
parent b73122ab2a
commit 43db2ee9fc
3 changed files with 9 additions and 9 deletions

View file

@ -118,7 +118,7 @@
find:
paths: /usr/lib/python2.7/site-packages
patterns: "fedora_openqa*"
register: py2oqainstalled
register: py2oqainstalled
changed_when: "1 != 1"
failed_when: "1 != 1"
check_mode: no
@ -132,7 +132,7 @@
- restart fedmsg-hub
- name: Remove fedora_openqa (Python 2)
command: "pip2 --disable-pip-version-check uninstall fedora-openqa"
command: "pip2 uninstall --disable-pip-version-check --yes fedora-openqa"
when: "py2oqainstalled is defined and py2oqainstalled and 'python34-fedmsg' in group_names"
notify:
- restart fedmsg-hub