/
pre.yaml
30 lines (28 loc) · 1.06 KB
/
pre.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- hosts: localhost
roles:
- role: log-inventory
zuul_log_url: "https://logserver.rdoproject.org"
- role: emit-job-header
zuul_log_url: "https://logserver.rdoproject.org"
- hosts: all
pre_tasks:
# NOTE(pabelanger): Until we hit the validate-host role, we have a minimal
# set of ansible variables collected by zuul-executor. This doesn't include
# network variables (ansible_default_ipv4 / ansible_default_ipv6) so gather
# these variables as they are important to the configure-unbound role.
- name: Gather network facts
setup:
gather_subset: 'network'
tasks:
- include_role: name=start-zuul-console
- block:
- include_role: name=add-build-sshkey
- include_role: name=validate-host
when: "ansible_connection != 'kubectl'"
- block:
- include_role: name=prepare-workspace-openshift
- include_role: name=remove-zuul-sshkey
run_once: true
when: "ansible_connection == 'kubectl'"
- import_role: name=ensure-output-dirs
when: ansible_user_dir is defined