1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_epel.git synced 2024-08-16 14:49:49 +02:00
ansible_role_epel/tasks/main.yml

20 lines
379 B
YAML
Raw Normal View History

2020-02-20 16:13:15 +01:00
---
- include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- name: import EPEL Repo GPG Key
become: true
rpm_key:
2020-02-20 16:24:54 +01:00
key: "{{ epel_repo_gpg_key_url }}"
2020-02-20 16:13:15 +01:00
state: present
2020-02-20 17:36:04 +01:00
validate_certs: true
2020-02-20 16:13:15 +01:00
- name: Install EPEL repo
become: true
yum:
2020-02-20 16:24:54 +01:00
name: "{{ epel_repo_url }}"
2020-02-20 16:13:15 +01:00
state: present
2020-02-20 16:24:54 +01:00
register: result
2020-02-20 16:13:15 +01:00
until: result is succeeded
retries: 3