generate flannel manifest only on first master (#5983)

This commit is contained in:
Sergey 2020-04-20 11:33:38 +03:00 committed by GitHub
parent 826a440fa6
commit 6e29a47784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,4 +8,4 @@
- {name: kube-flannel, file: cni-flannel.yml, type: ds}
register: flannel_node_manifests
when:
- inventory_hostname in groups['kube-master']
- inventory_hostname == groups['kube-master'][0]