base-jobs/playbooks/base-test/pre.yaml
Andreas Jaeger e146dc2a15 Remove log_url from emit-job-header (base-test)
Test in base-test first.

Change-Id: Id937741cc4a9d87a7a10bf2d2a2950716722c16c
2019-08-15 21:33:24 +02:00

37 lines
1.1 KiB
YAML

- hosts: localhost
roles:
- emit-job-header
- log-inventory
- 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'
roles:
- add-build-sshkey
- start-zuul-console
- ensure-output-dirs
- hosts: all
roles:
# NOTE(pabelanger): We run this role in its own play to ensure unbound is
# restarted before proceeding with any other role. This is because we use
# notify / handler to restart the unbound service. With ansible notify
# actions are triggered at the end of each block of tasks in a play.
- configure-unbound
- hosts: all
roles:
- validate-host
- use-cached-repos
- mirror-workspace-git-repos
- mirror-info
- role: configure-mirrors
set_apt_mirrors_trusted: True