Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
08148980
Unverified
Commit
08148980
authored
Oct 25, 2019
by
Erik Wilson
Committed by
GitHub
Oct 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #854 from xvzf/ansible_centos
CentOS/RHEL compatibility for Ansible roles
parents
38d8a7c5
5c870d18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
README.md
contrib/ansible/README.md
+1
-1
main.yml
contrib/ansible/roles/prereq/tasks/main.yml
+35
-0
site.yml
contrib/ansible/site.yml
+1
-0
No files found.
contrib/ansible/README.md
View file @
08148980
...
...
@@ -8,7 +8,7 @@ Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a
-
[
X
]
Debian
-
[
]
Ubuntu
-
[
]
CentOS
-
[
X
]
CentOS
on processor architecture:
...
...
contrib/ansible/roles/prereq/tasks/main.yml
0 → 100644
View file @
08148980
---
-
name
:
Set SELinux to disabled state
selinux
:
state
:
disabled
when
:
ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
-
name
:
Enable IPv4 forwarding
sysctl
:
name
:
net.ipv4.ip_forward
value
:
"
1"
state
:
present
reload
:
yes
-
name
:
Enable IPv6 forwarding
sysctl
:
name
:
net.ipv6.conf.all.forwarding
value
:
"
1"
state
:
present
reload
:
yes
-
name
:
Set bridge-nf-call-iptables (just to be sure)
sysctl
:
name
:
net.bridge.bridge-nf-call-iptables
value
:
"
1"
state
:
present
reload
:
yes
when
:
ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
-
name
:
Set bridge-nf-call-ip6tables (just to be sure)
sysctl
:
name
:
net.bridge.bridge-nf-call-iptables
value
:
"
1"
state
:
present
reload
:
yes
when
:
ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
contrib/ansible/site.yml
View file @
08148980
...
...
@@ -4,6 +4,7 @@
gather_facts
:
yes
become
:
yes
roles
:
-
{
role
:
prereq
}
-
{
role
:
download
}
-
{
role
:
raspbian
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment