mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -123,20 +123,20 @@
|
||||
- 10250
|
||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||
|
||||
# - name: Configure containerd for kubeadm
|
||||
# copy:
|
||||
# dest: /etc/containerd/config.toml
|
||||
# content: |
|
||||
# [plugins."io.containerd.grpc.v1.cri".containerd]
|
||||
# snapshotter = "overlayfs"
|
||||
- name: Configure containerd for kubeadm
|
||||
copy:
|
||||
dest: /etc/containerd/config.toml
|
||||
content: |
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd]
|
||||
snapshotter = "overlayfs"
|
||||
|
||||
# [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
# runtime_type = "io.containerd.runc.v2"
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||
runtime_type = "io.containerd.runc.v2"
|
||||
|
||||
# [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
# SystemdCgroup = true
|
||||
# notify:
|
||||
# - restart containerd
|
||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||
SystemdCgroup = true
|
||||
notify:
|
||||
- restart containerd
|
||||
|
||||
- name: Pause for 5 minutes to build app cache
|
||||
ansible.builtin.pause:
|
||||
@@ -151,6 +151,8 @@
|
||||
mode: '0755'
|
||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||
|
||||
|
||||
|
||||
- name: Copy kubeconfig to user
|
||||
copy:
|
||||
remote_src: yes
|
||||
@@ -170,7 +172,7 @@
|
||||
command: kubeadm token create --print-join-command
|
||||
register: join_command
|
||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||
|
||||
|
||||
- name: Initialize Kubernetes
|
||||
command: sudo kubeadm init --pod-network-cidr=10.244.0.0/16
|
||||
args:
|
||||
|
||||
Reference in New Issue
Block a user