update roles for ansible 6.0.0

This commit is contained in:
ace
2022-07-12 16:48:14 +03:00
parent 9d5478635b
commit e27478be4f
34 changed files with 120 additions and 38 deletions

View File

@ -2,7 +2,7 @@
metallb_combined_values: "{{ metallb_default_values | combine(metallb_values, recursive=true) }}"
- name: Deploy MetalLB
community.kubernetes.helm:
kubernetes.core.helm:
create_namespace: true
release_namespace: "{{ metallb_namespace | default('metallb-system') }}"
release_name: "{{ metallb_name | default('metallb') }}"
@ -30,3 +30,22 @@
when:
- strict_arp_for_metallb
- check_strict_arp.changed
- name: Apply MetalLB L2 definitions
k8s:
state: present
definition:
"{{ item.value }}"
wait: true
loop: "{{ metallb_bgp_definitions | dict2items }}"
when: metallb_advertisement_type == 'L2'
- name: Apply MetalLB BGP definitions
k8s:
state: present
definition:
"{{ item.value }}"
wait: true
loop: "{{ metallb_bgp_definitions | dict2items }}"
when: metallb_advertisement_type == 'BGP'