From 7b618d5cfe057b43df036698472dada120f5c057 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Thu, 25 Dec 2025 21:22:40 +0100 Subject: ansible: fix deprecation warnings and update configuration - Update all ansible_* fact references to use ansible_facts['fact_name'] syntax as required by upcoming Ansible 2.24 changes - Set INJECT_FACTS_AS_VARS = False in ansible.cfg to prepare for deprecation - Document known issue with community.proxmox _collections_compat warning" - Fix community.proxmox plugin name in inventory configuration - Add requirements.yml for collection dependencies --- ansible/roles/update_system/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ansible/roles/update_system/tasks/main.yml') diff --git a/ansible/roles/update_system/tasks/main.yml b/ansible/roles/update_system/tasks/main.yml index 6195d64..b83dca4 100644 --- a/ansible/roles/update_system/tasks/main.yml +++ b/ansible/roles/update_system/tasks/main.yml @@ -4,7 +4,7 @@ update_cache: true upgrade: true autoremove: true - when: ansible_pkg_mgr == "apt" + when: ansible_facts['pkg_mgr'] == "apt" - name: Update and upgrade system packages (RedHat-based) ansible.builtin.dnf: @@ -12,5 +12,5 @@ name: "*" state: present autoremove: true - when: ansible_pkg_mgr == "dnf" + when: ansible_facts['pkg_mgr'] == "dnf" ... -- cgit v1.2.3