Issue #970: Skip metallb installation if already deployed
@@ -38,7 +38,6 @@
command: "helm repo add metallb '{{ metallb_helm_url }}'"
changed_when: false
tags: init
-
- name: Create MetalLB Setup Config Files
copy:
@@ -60,7 +59,8 @@
- name: Deploy Metallb
command: "helm install metallb metallb/metallb -f '{{ metallb_config_file_dest }}'"
- changed_when: false
+ changed_when: true
+ when: "'metallb' not in k8s_pods.stdout"
- name: Start k8s dashboard