Eliminare i WARNING in fase di esecuzione del fuss-client 12
Lanciando fuss-client 12.0.17 vengono prodotti diversi Warning (o Deprecation Warning).
-
Il primo suggerisce di sostituire "include" (deprecated) con "include_tasks" (o altri comandi simili). Ho effettuato la sostituzione in numerosi task nei vari roles ansible ed il Warning è sparito.
-
Il secondo DEPRECATION WARNING suggerisce di usare il modulo 'ansible.utils.ipaddr' al posto del semplice ipaddr nel file /usr/share/fuss-client/roles/network/tasks/main.yml
- name: set a variable with the local network in cidr format
set_fact:
localnet: "{{ net_mask | ipaddr('net') }}"
- name: set a variable with the local network in cidr format
set_fact:
localnet: "{{ net_mask | ansible.utils.ipaddr('net') }}"
-
Il terzo DEPRECATION WARNING riguarda l'uso del modulo di criptazione Python e si risolve installando il pacchetto:
python3-passlib
Effettuate queste modifiche, i Warning non vengono più prodotti.