2db422f0b8
We ran into issues getting ansible-lint to run on Noble without updating everything to current ish versions due to Python 3.12 compatibility issues. Updating everything in this way created a bunch of new lint errors we need to fix so we worked around the problem previously by pinning back to Jammy. Now we move the job back to Noble (the default Nodeset) and update the tooling and fix the linter errors. This should allow us to move forward in a productive manner on modern platforms. The linter errors we fix include: * Naming every play * Ensuring every play name starts with a capital letter * Using fully qualified collection names for action modules (archive, git_config, and synchronize) * Quoting octal file modes Change-Id: I96560c5ce2a5af39d39b3fc339862932a856bd13
24 lines
734 B
YAML
24 lines
734 B
YAML
- name: Update to AFS
|
|
hosts: localhost
|
|
pre_tasks:
|
|
# Note that "{{ afs.path }}" is a valid afs_target and thus
|
|
# afs_subpath can be empty, we need this for openstack-manuals
|
|
# publishing.
|
|
- name: Set default afs_subpath
|
|
set_fact:
|
|
our_afs_subpath: "/{{ zuul.project.short_name }}"
|
|
when: afs_subpath is not defined
|
|
- name: Use defined afs_subpath
|
|
set_fact:
|
|
our_afs_subpath: "{{ afs_subpath }}"
|
|
when: afs_subpath is defined
|
|
|
|
roles:
|
|
- role: create-afs-token
|
|
when: zuul_success | bool
|
|
- role: upload-afs-roots
|
|
afs_target: "{{ afs.path }}{{ our_afs_subpath }}"
|
|
when: zuul_success | bool
|
|
- role: destroy-afs-token
|
|
when: zuul_success | bool
|