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
831a54e9
Commit
831a54e9
authored
9 years ago
by
Rob Hirschfeld
Browse files
Options
Downloads
Patches
Plain Diff
add code to detect if epel is already installed and skip it if it is
add option for generic
parent
fd64f4d2
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
roles/kubernetes/preinstall/tasks/main.yml
+10
-3
10 additions, 3 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
10 additions
and
3 deletions
roles/kubernetes/preinstall/tasks/main.yml
+
10
−
3
View file @
831a54e9
...
...
@@ -48,8 +48,8 @@
-
name
:
check cloud_provider value
fail
:
msg
:
"
If
set
the
'cloud_provider'
var
must
be
set
either
to
'gce',
'aws'
or
'openstack'"
when
:
cloud_provider is defined and cloud_provider not in ['gce', 'aws', 'openstack']
msg
:
"
If
set
the
'cloud_provider'
var
must
be
set
either
to
'
generic',
gce',
'aws'
or
'openstack'"
when
:
cloud_provider is defined and cloud_provider not in [
'generic',
'gce', 'aws', 'openstack']
-
include
:
openstack-credential-check.yml
when
:
cloud_provider is defined and cloud_provider == 'openstack'
...
...
@@ -78,10 +78,17 @@
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
when
:
ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >=
7
ansible_distribution_major_version >= 7 and
epel_check.stdout.find('is not installed') != -1
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