Move back iproute install to system_packages

Packages are now installed before network facts collection, so we can
install iproute with the rest.
This commit is contained in:
Max Gautier
2025-05-02 14:46:56 +02:00
parent 1e79c7b3cb
commit 5867fa1b9f
8 changed files with 4 additions and 78 deletions

View File

@@ -116,14 +116,3 @@
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
state: present
become: true
# iproute is required for networking related facts gathering
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
- name: Ensure iproute is installed
package:
name: iproute
state: present
become: true