Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Essential
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Ansible
Roles
Essential
Commits
872f10d7
Commit
872f10d7
authored
3 years ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
"OracleLinux"
parent
d4ea4f73
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/centos/main.yml
+11
-6
11 additions, 6 deletions
tasks/centos/main.yml
with
11 additions
and
6 deletions
tasks/centos/main.yml
+
11
−
6
View file @
872f10d7
---
-
name
:
Enable EPEL repo with standard package
dnf
:
ansible.builtin.
dnf
:
name
:
epel-release
state
:
present
update_cache
:
yes
when
:
apply_epel is defined and apply_epel and (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux')
-
block
:
-
name
:
Enable EPEL GPG key for externel repo
ansible.builtin.rpm_key
:
state
:
present
key
:
"
https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{
ansible_distribution_major_version
}}"
-
name
:
Enable EPEL repo with external package
dnf
:
ansible.builtin.
dnf
:
name
:
"
https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{
ansible_distribution_major_version
}}.noarch.rpm"
state
:
present
update_cache
:
yes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment