k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
622 B
17 lines
622 B
---
|
|
- name: "Kubernetes Apps | Lay Down MetalLB"
|
|
become: true
|
|
template: { src: "{{ item }}.j2", dest: "{{ kube_config_dir }}/{{ item }}" }
|
|
with_items: ["metallb.yml", "metallb-config.yml"]
|
|
register: "rendering"
|
|
when:
|
|
- "inventory_hostname == groups['kube-master'][0]"
|
|
- name: "Kubernetes Apps | Install and configure MetalLB"
|
|
kube:
|
|
name: "MetalLB"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{ kube_config_dir }}/{{ item.item }}"
|
|
state: "{{ item.changed | ternary('latest','present') }}"
|
|
with_items: "{{ rendering.results }}"
|
|
when:
|
|
- "inventory_hostname == groups['kube-master'][0]"
|