Commit 9e7c1c8a authored by Jeff Geerling's avatar Jeff Geerling

Fix idempotence for Flannel networking task.

parent 4b1d7737
...@@ -67,7 +67,9 @@ ...@@ -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/kube-flannel.yml
- kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml - kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
register: flannel_networking_result 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` # TODO: Check if taint exists with something like `kubectl describe nodes`
# instead of using kubernetes_init_stat.stat.exists check. # instead of using kubernetes_init_stat.stat.exists check.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment