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
c7bd2a2a
Commit
c7bd2a2a
authored
9 years ago
by
Greg Althaus
Browse files
Options
Downloads
Patches
Plain Diff
Need to use separate stanzas for each repo because the
args are different. Sigh.
parent
87fa167e
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
+7
-5
7 additions, 5 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
7 additions
and
5 deletions
roles/kubernetes/preinstall/tasks/main.yml
+
7
−
5
View file @
c7bd2a2a
...
@@ -33,11 +33,13 @@
...
@@ -33,11 +33,13 @@
always_run
:
True
always_run
:
True
tags
:
always
tags
:
always
-
name
:
Update package management cache
-
name
:
Update package management cache (APT)
action
:
apt
:
update_cache=yes
module
:
"
{{
ansible_pkg_mgr
}}"
when
:
ansible_pkg_mgr == 'apt'
update_cache
:
yes
when
:
ansible_pkg_mgr in ['apt', 'yum']
-
name
:
Update package management cache (YUM)
yum
:
update_cache=yes name='*'
when
:
ansible_pkg_mgr == 'yum'
-
name
:
Install python-apt for Debian distribs
-
name
:
Install python-apt for Debian distribs
shell
:
apt-get install -y python-apt
shell
:
apt-get install -y python-apt
...
...
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