mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
Fix idempotence for Flannel networking task.
This commit is contained in:
parent
4b1d773779
commit
9e7c1c8aae
@ -67,7 +67,9 @@
|
||||
- kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
||||
- kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
|
||||
register: flannel_networking_result
|
||||
changed_when: "'unchanged' not in flannel_networking_result.stdout"
|
||||
changed_when: >
|
||||
('unchanged' not in flannel_networking_result.stdout)
|
||||
or ('configured' not in flannel_networking_result.stdout)
|
||||
|
||||
# TODO: Check if taint exists with something like `kubectl describe nodes`
|
||||
# instead of using kubernetes_init_stat.stat.exists check.
|
||||
|
Loading…
Reference in New Issue
Block a user