3a806df6c6
We only need the three wheel-X scripts from jenkins/scripts and need them only for the playbook and its roles. Move the scripts in the roles directory and copy them only if needed - using the scripts module. Remove copying of complete jenkins/script for this playbook using the role legacy-copy-project-config-scripts, it's not needed anymore. Change-Id: I2e481fcf7ca148aac8a36ae99d8598ba26078a25
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
- hosts: all
|
|
roles:
|
|
- bindep
|
|
- legacy-install-afs-with-puppet
|
|
|
|
pre_tasks:
|
|
# NOTE(pabelanger): Needed by puppet-openafs package.
|
|
- name: Add OpenAFS OpenStack CI build
|
|
become: yes
|
|
yum_repository:
|
|
name: openafs
|
|
description: OpenAFS OpenStack CI build
|
|
baseurl: https://tarballs.openstack.org/project-config/package-afs-centos7
|
|
gpgcheck: no
|
|
when: ansible_distribution == "CentOS"
|
|
|
|
# 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
|
|
when: ansible_distribution == "CentOS"
|
|
with_items:
|
|
- dkms
|
|
- kstart
|
|
- parallel
|
|
|
|
# NOTE(pabelanger): We need to install extra liberies, such as:
|
|
# liberasurecode-devel
|
|
- name: Add centos-release-openstack-pike support
|
|
become: yes
|
|
when: ansible_distribution == "CentOS"
|
|
yum:
|
|
name: centos-release-openstack-pike
|
|
state: present
|