
We bump the Ansible version to the version that Zuul runs. We then set ansible-lint to the current latest version. This results in a number of new linter violations which we fix. These violations include: * Needing to name plays * Needing to start names with a capital letter * Using fully qualified names for action modules * Quoting permissions strings to avoid octal conversion errors * Using explicit yaml structures for tasks We also tell ansible-lint to mock zuul_return so that we don't get errors from it complaining that this module is not defined. Change-Id: Ic881313fea58f4482f70e493f3d256541d31860a
54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
- name: Process AFS RPM Packages
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Ensure artifacts directories exist
|
|
file:
|
|
state: directory
|
|
path: '{{ zuul.executor.work_root }}/{{ item }}'
|
|
loop:
|
|
- 'artifacts/openafs/centos9-stream'
|
|
|
|
#
|
|
# CentOS 9
|
|
#
|
|
|
|
- name: Download centos 9 x86 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-9-stream-x86
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 9 x86 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos9-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
|
|
- name: Download centos 9 arm64 artifact
|
|
include_role:
|
|
name: download-artifact
|
|
vars:
|
|
download_artifact_api: "https://zuul.opendev.org/api/tenant/{{ zuul.tenant }}"
|
|
download_artifact_type: rpm.tar.gz
|
|
download_artifact_pipeline: gate
|
|
download_artifact_job: openafs-rpm-package-build-centos-9-stream-arm64
|
|
download_artifact_directory: '{{ zuul.executor.work_root }}'
|
|
|
|
- name: Extract centos 9 arm64 stream
|
|
unarchive:
|
|
src: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/openafs/centos9-stream'
|
|
|
|
- name: Remove artifact
|
|
file:
|
|
state: absent
|
|
path: '{{ zuul.executor.work_root }}/openafs-rpms.tar.gz'
|