Loading README.md +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading roles/ubuntu/tasks/main.yml 0 → 100644 +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' site.yml +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ - role: prereq - role: download - role: raspbian - role: ubuntu - hosts: master become: yes Loading Loading
README.md +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading
roles/ubuntu/tasks/main.yml 0 → 100644 +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'
site.yml +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ - role: prereq - role: download - role: raspbian - role: ubuntu - hosts: master become: yes Loading