Update 'install_kubetools.yml'

master
alecsandru 9 months ago
parent 6a4865d5d5
commit ea10e4c3fb
  1. 18
      install_kubetools.yml

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

Loading…
Cancel
Save