Browse Source

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.
pull/4365/head
Peter Metz 5 years ago
committed by Kubernetes Prow Robot
parent
commit
38009a215a
1 changed files with 1 additions and 0 deletions
  1. 1
      contrib/metallb/roles/provision/tasks/main.yml

1
contrib/metallb/roles/provision/tasks/main.yml

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