Moved some prerequisites to external files
This commit is contained in:
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:
|
||||
|
10
kubernetes/tasks/prerequisites/containerd.yml
Normal file
10
kubernetes/tasks/prerequisites/containerd.yml
Normal file
@ -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
|
2
kubernetes/tasks/prerequisites/swap.yml
Normal file
2
kubernetes/tasks/prerequisites/swap.yml
Normal file
@ -0,0 +1,2 @@
|
||||
- name: Disable swap
|
||||
command: swapoff -a
|
Loading…
x
Reference in New Issue
Block a user