Unverified Commit a6eb0ca6 authored by Vincent RABAH's avatar Vincent RABAH Committed by GitHub
Browse files

Merge pull request #38 from fnord123/ubuntu2004

Add support for Ubuntu 20.04
parents 208bb87e 952768e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:

- [X] Debian
- [ ] Ubuntu
- [X] Ubuntu
- [X] CentOS

on processor architecture:
+14 −0
Original line number Diff line number Diff line
---
- 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'
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
    - role: prereq
    - role: download
    - role: raspbian

    - role: ubuntu

- hosts: master
  become: yes