diff --git a/roles/network_plugin/tasks/calico.yml b/roles/network_plugin/tasks/calico.yml index ae6ac82da028b747f784954a0492f8f432ac5c29..e33b31247a4b08f7954a285172fcb13a186f9667 100644 --- a/roles/network_plugin/tasks/calico.yml +++ b/roles/network_plugin/tasks/calico.yml @@ -27,7 +27,7 @@ run_once: true - name: Calico | Configure calico network pool - command: calicoctl pool add {{ kube_pods_subnet }} {%- if cloud_provider is defined and cloud_provider == True -%} --ipip{%- endif -%} + shell: calicoctl pool add {{ kube_pods_subnet }} {%- if cloud_provider is defined and cloud_provider == True -%} --ipip{%- endif -%} run_once: true when: calico_conf.status == 404