preinstall: Move ipvs packages into defaults
parent
3d19e744f0
commit
f91e00a61b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue