mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Tests: Use EPEL-7 from archive
Signed-off-by: Jakub Haruda <64086699+jharuda@users.noreply.github.com>
This commit is contained in:
parent
89d7148e81
commit
3841192f9f
1 changed files with 10 additions and 3 deletions
|
|
@ -6,10 +6,17 @@
|
|||
- ansible_distribution_major_version in ['7', '8']
|
||||
block:
|
||||
- name: Create EPEL {{ ansible_distribution_major_version }}
|
||||
vars:
|
||||
__epel_7:
|
||||
"https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/\
|
||||
Packages/e/epel-release-7-14.noarch.rpm"
|
||||
__epel: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{
|
||||
ansible_distribution_major_version }}.noarch.rpm
|
||||
__epel_url: "{{
|
||||
__epel_7 if ansible_distribution_major_version == '7'
|
||||
else __epel }}"
|
||||
command:
|
||||
cmd: >-
|
||||
rpm -iv https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{
|
||||
ansible_distribution_major_version }}.noarch.rpm
|
||||
cmd: rpm -iv {{ __epel_url }}
|
||||
# noqa command-instead-of-module
|
||||
creates: /etc/yum.repos.d/epel.repo
|
||||
register: __epel_status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue