ansible-roles/library/centos/roles/external-repos/tasks/main.yml

16 lines
535 B
YAML
Raw Normal View History

2019-05-15 01:22:27 +02:00
---
- name: Install the epel repository
yum: name={{ centos_epel_repo_url }} state={{ centos_pkg_state }}
2019-11-02 17:06:32 +01:00
when: centos_install_epel | bool
2019-05-15 01:22:27 +02:00
tags: [ 'centos', 'repo' ]
- name: Install the SCL release to access the latest versions of some software
yum: name=centos-release-scl state=present
2019-11-02 17:06:32 +01:00
when: centos_install_release_scl | bool
2019-05-15 01:22:27 +02:00
tags: [ 'centos', 'scl', 'repo' ]
- name: Install the elrepo repository
yum: name={{ rh_elrepo_repo_url }} state=present
2019-11-02 17:06:32 +01:00
when: rh_install_elrepo | bool
2019-05-15 01:22:27 +02:00
tags: [ 'centos', 'rhel', 'repo' ]