mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-21 02:11:23 +00:00
That is the following errors are fixed.
'206' # Variables should have spaces before and after: {{ var_name }}
'208' # File permissions unset or incorrect
'301' # Commands should not change things if nothing needs doing
'305' # Use shell only when shell functionality is required
'502' # All tasks should be named
'601' # Don't compare to literal True/False
'602' # Don't compare to empty string
RHELPLAN-73471
Signed-off-by: Noriko Hosoi <nhosoi@redhat.com>
25 lines
854 B
YAML
25 lines
854 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Enable EPEL {{ ansible_distribution_major_version }}
|
|
# yamllint disable-line rule:line-length
|
|
command: yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
|
|
args:
|
|
warn: false
|
|
creates: /etc/yum.repos.d/epel.repo
|
|
when:
|
|
- ansible_distribution in ['RedHat', 'CentOS']
|
|
- ansible_distribution_major_version in ['7', '8']
|
|
|
|
- name: Enable EPEL 6
|
|
copy:
|
|
dest: /etc/yum.repos.d/epel.repo
|
|
content: |
|
|
[epel]
|
|
name=Extra Packages for Enterprise Linux 6 - $basearch
|
|
baseurl=https://archives.fedoraproject.org/pub/archive/epel/6/$basearch
|
|
enabled=1
|
|
gpgcheck=0
|
|
mode: "0644"
|
|
when:
|
|
- ansible_distribution in ['RedHat', 'CentOS']
|
|
- ansible_distribution_major_version == '6'
|