mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
check-compose: Try and fix 'py2 is installed' detection
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
|
||||
- name: Remove check-compose (Python 2)
|
||||
command: "pip2 uninstall --disable-pip-version-check --yes check-compose"
|
||||
when: "py2ccinstalled is defined and py2ccinstalled and 'python34-fedmsg' in group_names"
|
||||
when: "py2ccinstalled is defined and py2ccinstalled.files and 'python34-fedmsg' in group_names"
|
||||
notify:
|
||||
- restart fedmsg-hub
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
command: "python3 setup.py install"
|
||||
args:
|
||||
chdir: /root/check-compose
|
||||
when: "(gitcc is changed or (py2ccinstalled is defined and py2ccinstalled)) and 'python34-fedmsg' in group_names"
|
||||
when: "(gitcc is changed or (py2ccinstalled is defined and py2ccinstalled.files)) and 'python34-fedmsg' in group_names"
|
||||
notify:
|
||||
- restart fedmsg-hub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user