Fix idempotence for Flannel networking task.

This commit is contained in:
Jeff Geerling 2018-05-09 16:31:14 -05:00
parent 4b1d773779
commit 9e7c1c8aae

View File

@ -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.