Moved some prerequisites to external files

role_kubernetes
Ruakij 2 years ago
parent 74ff4b483f
commit c899de75ae

@ -11,19 +11,9 @@
net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-iptables = 1
notify: reload_sysctl notify: reload_sysctl
- name: Disable swap - import_tasks: ./prerequisites/swap.yml
command: swapoff -a
- name: Deploy containerd-config - import_tasks: ./prerequisites/containerd.yml
ansible.builtin.copy:
src: containerd_config.toml
dest: /etc/containerd/config.toml
mode: u=rw,g=r,o=r
- name: restart_containerd
ansible.builtin.service:
name: containerd
state: restarted
- name: Set control-plane-dns-endpoint towards local-ip - name: Set control-plane-dns-endpoint towards local-ip
lineinfile: lineinfile:

@ -0,0 +1,10 @@
- name: Deploy containerd-config
ansible.builtin.copy:
src: containerd_config.toml
dest: /etc/containerd/config.toml
mode: u=rw,g=r,o=r
- name: restart_containerd
ansible.builtin.service:
name: containerd
state: restarted

@ -0,0 +1,2 @@
- name: Disable swap
command: swapoff -a
Loading…
Cancel
Save