kubespray/roles/kubernetes-apps/network_plugin/canal/tasks/main.yml

9 lines
378 B
YAML

---
- name: Canal | Start Resources
kube:
namespace: "kube-system"
kubectl: "{{bin_dir}}/kubectl"
filename: "{{ canal_manifests.results | selectattr('skipped', 'undefined') | map(attribute='item') | map(attribute='file') | map('regex_replace', '^(.*)$', kube_config_dir+'/\\1') | list }}"
state: "latest"
when: inventory_hostname == groups['kube-master'][0]