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
4271dd66
Commit
4271dd66
authored
9 years ago
by
teuto.net Netzdienste GmbH
Browse files
Options
Downloads
Patches
Plain Diff
using apt module instead of command module to install python-apt
parent
457ed11b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes/preinstall/tasks/main.yml
+2
-7
2 additions, 7 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
2 additions
and
7 deletions
roles/kubernetes/preinstall/tasks/main.yml
+
2
−
7
View file @
4271dd66
...
@@ -61,16 +61,12 @@
...
@@ -61,16 +61,12 @@
-
"
/opt/cni/bin"
-
"
/opt/cni/bin"
when
:
kube_network_plugin == "calico"
when
:
kube_network_plugin == "calico"
-
name
:
Update package management cache (APT)
apt
:
update_cache=yes
when
:
ansible_pkg_mgr == 'apt'
-
name
:
Update package management cache (YUM)
-
name
:
Update package management cache (YUM)
yum
:
update_cache=yes name='*'
yum
:
update_cache=yes name='*'
when
:
ansible_pkg_mgr == 'yum'
when
:
ansible_pkg_mgr == 'yum'
-
name
:
Install python-apt for Debian distribs
-
name
:
Install
latest version of
python-apt for Debian distribs
command
:
apt-get install -y python-apt
apt
:
name=python-apt state=latest update_cache=yes cache_valid_time=3600
when
:
ansible_os_family == "Debian"
when
:
ansible_os_family == "Debian"
changed_when
:
False
changed_when
:
False
...
@@ -78,7 +74,6 @@
...
@@ -78,7 +74,6 @@
command
:
dnf install -y python-dnf yum
command
:
dnf install -y python-dnf yum
when
:
ansible_distribution == "Fedora" and
when
:
ansible_distribution == "Fedora" and
ansible_distribution_major_version >
21
ansible_distribution_major_version >
21
changed_when
:
False
-
name
:
Install epel-release on RHEL
-
name
:
Install epel-release on RHEL
command
:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
command
:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
...
...
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