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

View File

@ -43,13 +43,12 @@
dest: '{{ playbook_dir }}/roles' dest: '{{ playbook_dir }}/roles'
state: link state: link
- name: "include Jenkins settings"
include_vars: jenkins.yaml
when: "(lookup('env','JENKINS_URL') | length) > 0"
- hosts: - hosts:
'{{ test_host | default(hostvars.localhost.test_host) | default("localhost") }}' '{{ test_host | default(hostvars.localhost.test_host) | default("localhost") }}'
gather_facts: yes gather_facts: yes
tasks: tasks:
- name: "include Jenkins settings"
include_vars: jenkins.yaml
when: "(lookup('env','JENKINS_URL') | length) > 0"
- include_role: name=tobiko-all - include_role: name=tobiko-all