60acea0da6
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
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
- name: Setup Wheel Cache Build Environment
|
|
hosts: all
|
|
roles:
|
|
- bindep
|
|
|
|
pre_tasks:
|
|
# NOTE(pabelanger): Manually install EPEL dependencies as not to
|
|
# keep EPEL enabled.
|
|
- name: Manually install EPEL dependencies
|
|
become: yes
|
|
yum:
|
|
name: "{{ item }}"
|
|
enablerepo: epel
|
|
state: present
|
|
loop:
|
|
- parallel
|
|
when: ansible_distribution == "CentOS"
|
|
|
|
# NOTE(pabelanger): We need to install extra libraries, such as
|
|
# liberasurecode-devel
|
|
# which are only part of the RDO repositories.
|
|
- name: Add centos-release-openstack for CentOS 7
|
|
yum:
|
|
name: centos-release-openstack-train
|
|
state: present
|
|
become: yes
|
|
when:
|
|
- ansible_distribution == "CentOS"
|
|
- ansible_distribution_major_version == '7'
|
|
|
|
- name: Add centos-release-openstack for CentOS 8
|
|
yum:
|
|
name: centos-release-openstack-xena
|
|
state: present
|
|
become: yes
|
|
when:
|
|
- ansible_distribution == "CentOS"
|
|
- ansible_distribution_major_version == '8'
|
|
|
|
- name: Add centos-release-openstack for CentOS 9
|
|
yum:
|
|
name: centos-release-openstack-yoga
|
|
state: present
|
|
become: yes
|
|
when:
|
|
- ansible_distribution == "CentOS"
|
|
- ansible_distribution_major_version == '9'
|
|
|
|
# This depends on rabbitmq, which isn't build for
|
|
# aarch64 and thus causes everything to stop
|
|
# See https://bugs.centos.org/view.php?id=16968
|
|
- name: Remove rabbitmq for aarch64
|
|
file:
|
|
path: /etc/yum.repos.d/CentOS-Messaging-rabbitmq.repo
|
|
state: absent
|
|
become: yes
|
|
when:
|
|
- ansible_distribution == "CentOS"
|
|
- ansible_distribution_major_version == '8'
|
|
- ansible_architecture == 'aarch64'
|