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
notify: reload_sysctl
- name: Disable swap
command: swapoff -a
- import_tasks: ./prerequisites/swap.yml
- 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
- import_tasks: ./prerequisites/containerd.yml
- name: Set control-plane-dns-endpoint towards local-ip
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