Update 'install_kubetools.yml'

This commit is contained in:
2024-05-04 08:48:54 +00:00
parent 6a4865d5d5
commit ea10e4c3fb

View File

@@ -9,10 +9,10 @@
name: {{ item }}
state: present
with_items:
- apt-transport-https
- ca-certificates
- curl
- gpg
- "apt-transport-https"
- "ca-certificates"
- "curl"
- "gpg"
- name: Creates keyrings directory
file:
path: /etc/apt/keyrings
@@ -36,16 +36,16 @@
name: {{ item }}
state: present
with_items:
- kubelet
- kubeadm
- kubectl
- "kubelet"
- "kubeadm"
- "kubectl"
- name: Hold packages
dpkg_selections:
name: {{ item }}
selection: hold
with_items:
- kubelet
- kubeadm
- "kubelet"
- "kubeadm"
- name: Start kubelet
service:
name: kubelet