Fix Jenkins vars inclusion

Change-Id: I70aa53e07273688461809b771fa8442bddb64ea2
This commit is contained in:
Federico Ressi 2020-05-12 10:23:08 +02:00
parent 32c91c7264
commit 7bdb82d81b
1 changed files with 3 additions and 4 deletions

View File

@ -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