- name: Install Kubernetes CNI hosts: k8s_control_plane become: true tasks: - name: Download Calico manifest get_url: url: https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/calico.yaml dest: /tmp/calico.yaml mode: '0644' - name: Apply Calico CNI plugin shell: kubectl apply -f /tmp/calico.yaml environment: KUBECONFIG: /etc/kubernetes/admin.conf