project-config/playbooks/wheel/pre.yaml
Paul Belanger 3a01751efe
Use become: yes for yum_repository task
We need to be root to add repo files.

Change-Id: Ie1e56e49fb37792c74cc6b045a8f345b95a6d755
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-11-15 23:45:59 -05:00

33 lines
938 B
YAML

- hosts: all
roles:
- role: bindep
bindep_profile: test
bindep_dir: "src/{{ zuul.project.canonical_name }}"
- legacy-install-afs-with-puppet
- legacy-copy-project-config-scripts
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