Compare commits

...

2 Commits

Author SHA1 Message Date
thebigbone 23cac351c6 fix some commands 2024-04-06 19:31:17 +05:30
thebigbone da6e87fa1e wrong kernel module name 2024-03-24 12:04:05 +05:30
1 changed files with 6 additions and 3 deletions

View File

@ -16,8 +16,8 @@
- containerd - containerd
state: present state: present
- name: create br_filter - name: create br_netfilter
command: modprobe br_filter command: modprobe br_netfilter
- name: create a containerd directory - name: create a containerd directory
file: file:
@ -41,7 +41,7 @@
lineinfile: lineinfile:
path: /etc/containerd/config.toml path: /etc/containerd/config.toml
regexp: '^SystemdCgroup =' regexp: '^SystemdCgroup ='
line: 'SystemdCgroup = true' line: 'SystemdCgroup = true' # fix this shit, its not replacing the correct SystemdCgroup
- name: turn off swap - name: turn off swap
command: swapoff -a command: swapoff -a
@ -53,6 +53,9 @@
line: 'net.ipv4.ip_forward=1' line: 'net.ipv4.ip_forward=1'
state: present state: present
- name: edit /proc/sys/net/ipv4/ip_forward
command: echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward
- name: check if GPG key file exists - name: check if GPG key file exists
stat: stat:
path: /etc/apt/keyrings/kubernetes-apt-keyring.gpg path: /etc/apt/keyrings/kubernetes-apt-keyring.gpg