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
|
- 10250
|
||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||||
|
|
||||||
# - name: Configure containerd for kubeadm
|
- name: Configure containerd for kubeadm
|
||||||
# copy:
|
copy:
|
||||||
# dest: /etc/containerd/config.toml
|
dest: /etc/containerd/config.toml
|
||||||
# content: |
|
content: |
|
||||||
# [plugins."io.containerd.grpc.v1.cri".containerd]
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
||||||
# snapshotter = "overlayfs"
|
snapshotter = "overlayfs"
|
||||||
|
|
||||||
# [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||||
# runtime_type = "io.containerd.runc.v2"
|
runtime_type = "io.containerd.runc.v2"
|
||||||
|
|
||||||
# [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||||
# SystemdCgroup = true
|
SystemdCgroup = true
|
||||||
# notify:
|
notify:
|
||||||
# - restart containerd
|
- restart containerd
|
||||||
|
|
||||||
- name: Pause for 5 minutes to build app cache
|
- name: Pause for 5 minutes to build app cache
|
||||||
ansible.builtin.pause:
|
ansible.builtin.pause:
|
||||||
@@ -151,6 +151,8 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Copy kubeconfig to user
|
- name: Copy kubeconfig to user
|
||||||
copy:
|
copy:
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
@@ -170,7 +172,7 @@
|
|||||||
command: kubeadm token create --print-join-command
|
command: kubeadm token create --print-join-command
|
||||||
register: join_command
|
register: join_command
|
||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||||
|
|
||||||
- name: Initialize Kubernetes
|
- name: Initialize Kubernetes
|
||||||
command: sudo kubeadm init --pod-network-cidr=10.244.0.0/16
|
command: sudo kubeadm init --pod-network-cidr=10.244.0.0/16
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user