project-config/playbooks/base-test/pre.yaml
Paul Belanger d6c5c1cd08
Promote base-test to bast for ipv6 DNS fixes
This promotes https://review.openstack.org/557505/ to gather the
network ansible variables needed for configure-unbound role.

http://logs.openstack.org/67/549867/1/check/openstack-zuul-jobs-linters/60cb81c/job-output.txt.gz#_2018-03-28_21_43_26_651991

Change-Id: I68f5c3c7a1f2c582ac5f7b8b555b40e1cf4feb1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-28 18:15:03 -04:00

29 lines
902 B
YAML

- hosts: localhost
roles:
- role: emit-job-header
zuul_log_url: "http://logs.openstack.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'
roles:
- add-build-sshkey
- start-zuul-console
- configure-unbound
- validate-host
- use-cached-repos
- mirror-workspace-git-repos
- mirror-info
- role: configure-mirrors
set_apt_mirrors_trusted: True
- role: fetch-zuul-cloner
destination: "/usr/zuul-env/bin/zuul-cloner"
repo_src_dir: "/home/zuul/src/git.openstack.org"