lae / ansible-role-proxmox

IaC for Proxmox VE clusters.
MIT License
468 stars 139 forks source link

fix: Replace deprecated ansible.netcommon.ipaddr #242

Closed btravouillon closed 2 weeks ago

btravouillon commented 1 month ago

This filter is deprecated as per https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/ipaddr_filter.html

Use ansible.utils.ipaddr instead.

I observed the deprecation notice while adding new nodes to the cluster.

TASK [lae.proxmox : Mount Ceph filesystems] ************************************
Friday 31 May 2024  22:09:03 +0000 (0:00:00.299)       0:02:18.056 ************ 
[DEPRECATION WARNING]: Use 'ansible.utils.ipaddr' module instead. This feature 
will be removed from ansible.netcommon in a release after 2024-01-01. 
Deprecation warnings can be disabled by setting deprecation_warnings=False in 
ansible.cfg.