khuedoan-homelab/metal/roles/metallb_config/tasks/main.yml

11 lines
308 B
YAML

- name: Ensure MetalLB namespace exist
kubernetes.core.k8s:
api_version: v1
kind: Namespace
name: "{{ metallb_namespace }}"
state: present
- name: Create MetalLB config base on network info
kubernetes.core.k8s:
definition: "{{ lookup('template', 'configmap.yaml.j2') | from_yaml }}"