...or, you know, I just messed up the conditional
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
958ddd9e62
commit
e293bc91d4
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue