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
e414c25f
Commit
e414c25f
authored
8 years ago
by
Mark Lee
Browse files
Options
Downloads
Patches
Plain Diff
follow sysctl.conf file symlink if linked
parent
34a71554
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
+17
-0
17 additions, 0 deletions
roles/kubernetes/preinstall/tasks/main.yml
with
17 additions
and
0 deletions
roles/kubernetes/preinstall/tasks/main.yml
+
17
−
0
View file @
e414c25f
...
@@ -139,8 +139,25 @@
...
@@ -139,8 +139,25 @@
when
:
disable_ipv6_dns and not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
when
:
disable_ipv6_dns and not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
tags
:
bootstrap-os
tags
:
bootstrap-os
-
name
:
set default sysctl file path
set_fact
:
sysctl_file_path
:
"
/etc/sysctl.d/99-sysctl.conf"
tags
:
bootstrap-os
-
name
:
Stat sysctl file configuration
stat
:
path={{sysctl_file_path}}
register
:
sysctl_file_stat
tags
:
bootstrap-os
-
name
:
Change sysctl file path to link source if linked
set_fact
:
sysctl_file_path
:
"
{{sysctl_file_stat.stat.lnk_source}}"
when
:
sysctl_file_stat.stat.islnk is defined and sysctl_file_stat.stat.islnk
tags
:
bootstrap-os
-
name
:
Enable ip forwarding
-
name
:
Enable ip forwarding
sysctl
:
sysctl
:
sysctl_file
:
"
{{sysctl_file_path}}"
name
:
net.ipv4.ip_forward
name
:
net.ipv4.ip_forward
value
:
1
value
:
1
state
:
present
state
:
present
...
...
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