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
9f4588cd
Unverified
Commit
9f4588cd
authored
7 years ago
by
Aivars Sterns
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2266 from riverzhang/epel-release
Disalbe install epel-release rpm on Centos/Redhat
parents
cae1c683
47adf4bc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/defaults/main.yml
+1
-2
1 addition, 2 deletions
roles/kubernetes/preinstall/defaults/main.yml
roles/kubernetes/preinstall/tasks/main.yml
+3
-8
3 additions, 8 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
4 additions
and
10 deletions
roles/kubernetes/preinstall/defaults/main.yml
+
1
−
2
View file @
9f4588cd
...
@@ -4,8 +4,7 @@ run_gitinfos: false
...
@@ -4,8 +4,7 @@ run_gitinfos: false
# Set to true to allow pre-checks to fail and continue deployment
# Set to true to allow pre-checks to fail and continue deployment
ignore_assert_errors
:
false
ignore_assert_errors
:
false
epel_rpm_download_url
:
"
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
epel_enabled
:
false
epel_enabled
:
true
common_required_pkgs
:
common_required_pkgs
:
-
python-httplib2
-
python-httplib2
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/main.yml
+
3
−
8
View file @
9f4588cd
...
@@ -172,18 +172,13 @@
...
@@ -172,18 +172,13 @@
-
bootstrap-os
-
bootstrap-os
-
name
:
Install epel-release on RedHat/CentOS
-
name
:
Install epel-release on RedHat/CentOS
shell
:
rpm -qa | grep epel-release || rpm -ivh {{ epel_rpm_download_url }}
yum
:
register
:
epel_task_result
name
:
epel-release
until
:
epel_task_result|succeeded
state
:
present
retries
:
4
delay
:
"
{{
retry_stagger
|
random
+
3
}}"
changed_when
:
False
when
:
when
:
-
ansible_distribution in ["CentOS","RedHat"]
-
ansible_distribution in ["CentOS","RedHat"]
-
not is_atomic
-
not is_atomic
-
epel_rpm_download_url != ''
-
epel_enabled|bool
-
epel_enabled|bool
check_mode
:
no
tags
:
tags
:
-
bootstrap-os
-
bootstrap-os
...
...
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