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/k8s/tasks/install_k3s_worker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/k8s/tasks/install_k3s_worker.yml') diff --git a/ansible/roles/k8s/tasks/install_k3s_worker.yml b/ansible/roles/k8s/tasks/install_k3s_worker.yml index b550b88..eda028b 100644 --- a/ansible/roles/k8s/tasks/install_k3s_worker.yml +++ b/ansible/roles/k8s/tasks/install_k3s_worker.yml @@ -2,7 +2,7 @@ - name: Retrieve k3s token and master IP from master node ansible.builtin.set_fact: k3s_token: "{{ hostvars[groups['tag_k3s_master'][0]].k3s_token }}" - k3s_master_ip: "{{ hostvars[groups['tag_k3s_master'][0]].ansible_default_ipv4.address }}" + k3s_master_ip: "{{ hostvars[groups['tag_k3s_master'][0]].ansible_facts['default_ipv4']['address'] }}" when: hostvars[groups['tag_k3s_master'][0]].k3s_token is defined - name: Ensure /opt/k3s directory exists -- cgit v1.2.3