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

@@ -83,15 +83,3 @@
- apparmor-parser
state: present
become: true
# iproute2 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 iproute2 is installed
community.general.zypper:
name: iproute2
state: present
update_cache: true
become: true