From 38009a215a4d2982eb6f53f3339cabee7a4a26f8 Mon Sep 17 00:00:00 2001 From: Peter Metz Date: Sun, 17 Mar 2019 18:15:09 -0700 Subject: [PATCH] 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. --- contrib/metallb/roles/provision/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/metallb/roles/provision/tasks/main.yml b/contrib/metallb/roles/provision/tasks/main.yml index 9192ceb54..6b9661de4 100644 --- a/contrib/metallb/roles/provision/tasks/main.yml +++ b/contrib/metallb/roles/provision/tasks/main.yml @@ -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]"