From e293bc91d449521b66a81552cf36c270afa1a0c7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 27 Nov 2018 15:47:52 -0800 Subject: [PATCH] ...or, you know, I just messed up the conditional Signed-off-by: Adam Williamson --- roles/openqa/dispatcher/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/openqa/dispatcher/tasks/main.yml b/roles/openqa/dispatcher/tasks/main.yml index 205a7d94d0..72f9256bdf 100644 --- a/roles/openqa/dispatcher/tasks/main.yml +++ b/roles/openqa/dispatcher/tasks/main.yml @@ -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