diff options
| author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-12-25 21:22:40 +0100 |
|---|---|---|
| committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-12-25 21:22:40 +0100 |
| commit | 7b618d5cfe057b43df036698472dada120f5c057 (patch) | |
| tree | 14d836cac1056d60a1d490d85c14e061478af4d3 /ansible/roles/update_system/tasks/main.yml | |
| parent | 85159d5a9f7d865684cd99cb774cef5f6984c940 (diff) | |
- 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
Diffstat (limited to 'ansible/roles/update_system/tasks/main.yml')
| -rw-r--r-- | ansible/roles/update_system/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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" ... |
