fix(contrib/metallb): adds missing become: true in role (#4356)

On CoreOS, without this, it fails to kubectl apply MetalLB due to lack of privileges.
This commit is contained in:
Peter Metz 2019-03-17 18:15:09 -07:00 committed by Kubernetes Prow Robot
parent 150a969cf4
commit 38009a215a

View file

@ -12,6 +12,7 @@
kubectl: "{{bin_dir}}/kubectl"
filename: "{{ kube_config_dir }}/{{ item.item }}"
state: "{{ item.changed | ternary('latest','present') }}"
become: true
with_items: "{{ rendering.results }}"
when:
- "inventory_hostname == groups['kube-master'][0]"