Update to version v3.19.0
This commit is contained in:
parent
3fbe1541c1
commit
e415d35bda
8 changed files with 84 additions and 36 deletions
|
|
@ -12,6 +12,30 @@
|
|||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "{{ calico_files }}"
|
||||
register: calico_changed
|
||||
|
||||
- name: delete pods calicoctl
|
||||
k8s:
|
||||
state: absent
|
||||
context: "{{ my_context }}"
|
||||
kind: Pod
|
||||
name: calicoctl
|
||||
namespace: kube-system
|
||||
when:
|
||||
- calico_changed is changed
|
||||
|
||||
- name: calicoctl install
|
||||
k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
apply: yes
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
with_items:
|
||||
- "{{ calicoctl_files }}"
|
||||
when:
|
||||
- calico_changed is changed
|
||||
|
||||
|
||||
when:
|
||||
- kubernetes_network == "calico"
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue