Clark Boylan 7bd42d37c4 Fixup CI jobs
Several things have bit rotted in here that we need to take care of.

First is that we updated the default nodeset to Noble which breaks our
ability to install Pillow<10 for blockdiag. To fix this we need to
install libjpeg-dev so that we can build a Pillow wheel locally during
testing.

Next old ansible-lint doesn't run on Noble's python3.12. We bump up
Ansible lint to a modern version that matches Zuul's current default
Ansible. We also stop installing zuul to get zuul_console and
zuul_return and instead simply mock them in the linter. To make this
work we have to drop the ansible-playbook syntax check run which is fine
because ansible-lint runs this too, but when done via ansible-lint the
mocked modules are respected [0].

Finally we have to clean up/ignore some of the new linter
warnings/errors.

[0] https://ansible.readthedocs.io/projects/lint/rules/syntax-check/

Change-Id: Ia0e936fefc9e2b0f2fa614c93a2f168e14b2825b
2024-09-19 14:18:01 -07:00

66 lines
2.0 KiB
YAML

- name: Create job header and inventory
hosts: localhost
roles:
- role: emit-job-header
zuul_log_path_shard_build: true
- log-inventory
- name: Setup Zuul environment
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
- name: Configure unbound
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
- name: Prepare workspace and configure mirrors
hosts: all
roles:
- validate-host
- test-prepare-workspace-git
- mirror-info
- role: configure-mirrors
set_apt_mirrors_trusted: true
mirror_use_ssl: true
configure_mirrors_components_9_stream:
'baseos': true
'baseos-debug': false
'baseos-source': false
'appstream': true
'appstream-debug': false
'appstream-source': false
'crb': true
'crb-debug': false
'crb-source': false
'highavailability': true
'highavailability-debug': false
'highavailability-source': false
'nfv': true
'nfv-debug': false
'nfv-source': false
'rt': true
'rt-debug': false
'rt-source': false
'resilientstorage': true
'resilientstorage-debug': false
'resilientstorage-source': false
'extras-common': true
'extras-common-source': false