Merge pull request #38 from fnord123/ubuntu2004

Add support for Ubuntu 20.04
This commit is contained in:
Vincent RABAH
2020-06-04 11:41:22 +02:00
committed by GitHub
3 changed files with 16 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ Author: <https://github.com/itwars>
Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running: Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running:
- [X] Debian - [X] Debian
- [ ] Ubuntu - [X] Ubuntu
- [X] CentOS - [X] CentOS
on processor architecture: on processor architecture:

View File

@@ -0,0 +1,14 @@
---
- name: Enable cgroup via boot commandline if not already enabled
lineinfile:
path: /boot/firmware/cmdline.txt
backrefs: yes
regexp: '^((?!.*\bcgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory\b).*)$'
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
when:
- ansible_distribution == 'Ubuntu'
- name: Reboot to enable cgroups
reboot:
when:
- ansible_distribution == 'Ubuntu'

View File

@@ -7,7 +7,7 @@
- role: prereq - role: prereq
- role: download - role: download
- role: raspbian - role: raspbian
- role: ubuntu
- hosts: master - hosts: master
become: yes become: yes