preinstall: Move ipvs packages into defaults

pull/11131/head
Max Gautier 2024-03-04 09:52:10 +01:00
parent 3d19e744f0
commit f91e00a61b
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View File

@ -17,6 +17,7 @@ common_required_pkgs:
- ebtables - ebtables
- bash-completion - bash-completion
- tar - tar
- "{{ kube_proxy_mode == 'ipvs' | ternary(['ipvsadm', 'ipset'], []) }}"
# Set to true if your network does not support IPv6 # Set to true if your network does not support IPv6
# This may be necessary for pulling Docker images from # This may be necessary for pulling Docker images from

View File

@ -59,14 +59,9 @@
tags: tags:
- bootstrap-os - bootstrap-os
- name: Update common_required_pkgs with ipvsadm when kube_proxy_mode is ipvs
set_fact:
common_required_pkgs: "{{ common_required_pkgs | default([]) + ['ipvsadm', 'ipset'] }}"
when: kube_proxy_mode == 'ipvs'
- name: Install packages requirements - name: Install packages requirements
package: package:
name: "{{ required_pkgs | default([]) | union(common_required_pkgs | default([])) }}" name: "{{ required_pkgs | union(common_required_pkgs) | flatten }}"
state: present state: present
register: pkgs_task_result register: pkgs_task_result
until: pkgs_task_result is succeeded until: pkgs_task_result is succeeded