base-jobs/playbooks/base/pre.yaml
James E. Blair 8330d6bbf7 Switch to logs.opendev.org
Report logs.opendev.org URLs because it support https, which is
necessary when accessing the build page in the Zuul web app on
an https site.

Change-Id: I69268d0c75d1158cdd531d5b6701114140952660
2019-07-31 15:47:54 -07:00

38 lines
1.1 KiB
YAML

- hosts: localhost
roles:
- role: emit-job-header
zuul_log_url: "https://logs.opendev.org"
- 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