From 7bdb82d81b52b609d8cc0af8f8beb635b5cad4b8 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Tue, 12 May 2020 10:23:08 +0200 Subject: [PATCH] Fix Jenkins vars inclusion Change-Id: I70aa53e07273688461809b771fa8442bddb64ea2 --- infrared_plugin/main.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/infrared_plugin/main.yaml b/infrared_plugin/main.yaml index 988115448..e49c51cc2 100644 --- a/infrared_plugin/main.yaml +++ b/infrared_plugin/main.yaml @@ -43,13 +43,12 @@ dest: '{{ playbook_dir }}/roles' state: link - - name: "include Jenkins settings" - include_vars: jenkins.yaml - when: "(lookup('env','JENKINS_URL') | length) > 0" - - hosts: '{{ test_host | default(hostvars.localhost.test_host) | default("localhost") }}' gather_facts: yes tasks: + - name: "include Jenkins settings" + include_vars: jenkins.yaml + when: "(lookup('env','JENKINS_URL') | length) > 0" - include_role: name=tobiko-all