|
@@ -34,11 +34,9 @@
|
|
|
register: k8s_pods
|
|
|
tags: init
|
|
|
|
|
|
-- name: Deploy MetalLB
|
|
|
- command: "kubectl apply -f '{{ metallb_yaml_url }}'"
|
|
|
- changed_when: true
|
|
|
- when: "'metallb' not in k8s_pods.stdout"
|
|
|
- tags: init
|
|
|
+- name: Get metallb repo
|
|
|
+ command: "helm repo add metallb https://metallb.github.io/metallb"
|
|
|
+
|
|
|
|
|
|
- name: Create MetalLB Setup Config Files
|
|
|
copy:
|
|
@@ -58,17 +56,9 @@
|
|
|
mode: "{{ metallb_deployment_file_mode }}"
|
|
|
tags: init
|
|
|
|
|
|
-- name: Deploy MetalLB
|
|
|
- command: "kubectl apply -f '{{ metallb_deployment_file_dest }}'"
|
|
|
- changed_when: true
|
|
|
- when: "'metallb' not in k8s_pods.stdout"
|
|
|
- tags: init
|
|
|
+- name: Deploy Metallb
|
|
|
+ command: "helm install metallb metallb/metallb -f '{{ metallb_config_file_dest }}'/metal-config.yaml"
|
|
|
|
|
|
-- name: Create default setup for MetalLB
|
|
|
- command: "kubectl apply -f '{{ metallb_config_file_dest }}'"
|
|
|
- changed_when: true
|
|
|
- when: "'metallb' not in k8s_pods.stdout"
|
|
|
- tags: init
|
|
|
|
|
|
- name: Start k8s dashboard
|
|
|
command: "kubectl create -f '{{ k8s_dashboard_yaml_url }}'"
|