Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
f12ad6a5
Commit
f12ad6a5
authored
8 years ago
by
Rob Hirschfeld
Browse files
Options
Downloads
Patches
Plain Diff
consolidate EPEL change into a single task
as per @smana request
parent
831a54e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/preinstall/tasks/main.yml
+2
-9
2 additions, 9 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
2 additions
and
9 deletions
roles/kubernetes/preinstall/tasks/main.yml
+
2
−
9
View file @
f12ad6a5
...
...
@@ -78,17 +78,10 @@
ansible_distribution_major_version >
21
changed_when
:
False
-
name
:
Check if epel-release-7-5.noarch is installed
command
:
rpm -q epel-release-7-5.noarch
register
:
epel_check
when
:
ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >=
7
-
name
:
Install epel-release on RedHat/CentOS
command
:
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
shell
:
rpm -qa | grep epel-release ||
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
when
:
ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7 and
epel_check.stdout.find('is not installed') != -1
ansible_distribution_major_version >=
7
changed_when
:
False
-
name
:
Install packages requirements
...
...
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