...or, you know, I just messed up the conditional

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-11-27 15:47:52 -08:00
parent 958ddd9e62
commit e293bc91d4

View file

@ -109,7 +109,7 @@
- name: Check if fedora_openqa has ever been installed (Python 2)
stat: path=/usr/bin/fedora-openqa
register: insttools2
register: insttools
when: "'python34-fedmsg' not in group_names"
changed_when: "1 != 1"
failed_when: "1 != 1"
@ -117,8 +117,8 @@
- name: Check if fedora_openqa has ever been installed (Python 3)
stat: path=/usr/local/bin/fedora-openqa
register: insttools3
when: "'python34-fedmsg' not in group_names"
register: insttools
when: "'python34-fedmsg' in group_names"
changed_when: "1 != 1"
failed_when: "1 != 1"
check_mode: no
@ -136,7 +136,7 @@
command: "python2 setup.py install --nodeps"
args:
chdir: /root/fedora_openqa
when: "'python34-fedmsg' not in group_names and (gittools is changed or not insttools2.stat.exists)"
when: "'python34-fedmsg' not in group_names and (gittools is changed or not insttools.stat.exists)"
notify:
- restart fedmsg-hub
@ -158,7 +158,7 @@
command: "python3 setup.py install --nodeps"
args:
chdir: /root/fedora_openqa
when: "'python34-fedmsg' in group_names and (gittools is changed or not insttools3.stat.exists or (py2oqainstalled is defined and py2oqainstalled.files))"
when: "'python34-fedmsg' in group_names and (gittools is changed or not insttools.stat.exists or (py2oqainstalled is defined and py2oqainstalled.files))"
notify:
- restart fedmsg-hub