mirror of
https://github.com/roles-ansible/ansible_role_epel.git
synced 2024-08-16 14:49:49 +02:00
31 lines
837 B
YAML
31 lines
837 B
YAML
---
|
|
- name: combine epel_repo config
|
|
set_fact:
|
|
epel_repo: "{{ _epel_repo|combine(epel_repo, recursive=True) }}"
|
|
|
|
- include_tasks: versioncheck.yml
|
|
when: submodules_versioncheck|bool
|
|
|
|
- name: import EPEL Repo GPG Key
|
|
block:
|
|
- name: import epel gpg from file
|
|
rpm_key:
|
|
key: "{{ epel_repo.gpg_key_path }}"
|
|
state: present
|
|
fingerprint: "{{ epel_repo.fingerprint[ansible_distribution_major_version] }}"
|
|
rescue:
|
|
- name: import epel gpgp from url
|
|
rpm_key:
|
|
key: "{{ epel_repo.gpg_key_url }}"
|
|
state: present
|
|
fingerprint: "{{ epel_repo['fingerprint'][ ansible_distribution_major_version ] }}"
|
|
become: true
|
|
|
|
- name: Install EPEL repo
|
|
become: true
|
|
yum:
|
|
name: "{{ epel_repo.url }}"
|
|
state: present
|
|
register: result
|
|
until: result is succeeded
|
|
retries: 3
|