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
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
- name: Publish Wheels to Mirror
|
|
hosts: all
|
|
# We don't want the python2 & python3 hosts copying to AFS at the
|
|
# same time. In some cases for generic wheels they can have
|
|
# produced a file with the same name and thus we open a window to
|
|
# corruption on AFS with multiple simultaneous writers to the same
|
|
# file.
|
|
serial: 1
|
|
|
|
pre_tasks:
|
|
- name: Generate AFS slug - Major version distros
|
|
set_fact:
|
|
afs_slug: "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}"
|
|
when: ansible_distribution == "CentOS" or
|
|
ansible_distribution == "Debian"
|
|
|
|
- name: Generate AFS slug - Major.Minor version distros
|
|
set_fact:
|
|
afs_slug: "{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}-{{ ansible_architecture }}"
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- name: Set fact for AFS dir
|
|
set_fact:
|
|
afs_dir: "/afs/.openstack.org/mirror/wheel/{{ afs_slug }}/"
|
|
|
|
- name: Set fact for wheel dir
|
|
set_fact:
|
|
wheel_dir: /opt/wheel/workspace
|
|
|
|
roles:
|
|
- create-afs-token
|
|
- copy-wheels
|
|
- destroy-afs-token
|