Skip to content

Commit

Permalink
fix(contrib/metallb): adds missing become: true in role (kubernetes-s…
Browse files Browse the repository at this point in the history
…igs#4356)

On CoreOS, without this, it fails to kubectl apply MetalLB due to lack of privileges.
  • Loading branch information
petermetz authored and k8s-ci-robot committed Mar 18, 2019
1 parent 150a969 commit 38009a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/metallb/roles/provision/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]"

0 comments on commit 38009a2

Please sign in to comment.