SUMMARY
firewalld_info gives two deprecation warnings for ansible.utils features to be removed in ansible-core 2.23 and 2.24 with ansible.posix 2.10 and ansible.utils 6.0.2
ISSUE TYPE
COMPONENT NAME
ansible.utils.firewalld_info
ANSIBLE VERSION
ansible [core 2.20.0]
config file = /tmp/ansible/ansible.cfg
configured module search path = ['/home/steve/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/steve/.local/lib/python3.14/site-packages/ansible
ansible collection location = /home/steve/.ansible/collections:/usr/share/ansible/collections
executable location = /home/steve/.local/bin/ansible
python version = 3.14.3 (main, Mar 26 2026, 00:00:00) [GCC 16.0.1 20260321 (Red Hat 16.0.1-0)] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.3 (with libyaml v0.2.5)
COLLECTION VERSION
steve@jabberwock:~$ ansible-galaxy collection list ansible.posix; ansible-galaxy collection list ansible.utils
# /home/steve/.ansible/collections/ansible_collections
Collection Version
------------- -------
ansible.posix 2.1.0
# /usr/lib/python3.14/site-packages/ansible_collections
Collection Version
------------- -------
ansible.posix 2.1.0
# /home/steve/.ansible/collections/ansible_collections
Collection Version
------------- -------
ansible.utils 6.0.2
# /usr/lib/python3.14/site-packages/ansible_collections
Collection Version
------------- -------
ansible.utils 6.0.1
CONFIGURATION
steve@jabberwock:/tmp/ansible$ ansible-config dump --only-changed
CONFIG_FILE() = /tmp/ansible/ansible.cfg
EDITOR(env: EDITOR) = /usr/bin/nano
GALAXY_SERVERS:
OS / ENVIRONMENT
steve@jabberwock:/tmp/ansible$ cat /etc/fedora-release
Fedora release 44 (Forty Four)
STEPS TO REPRODUCE
steve@jabberwock:~$ mkdir /tmp/ansible
steve@jabberwock:~$ cd /tmp/ansible
steve@jabberwock:/tmp/ansible$ touch ansible.cfg
steve@jabberwock:/tmp/ansible$ ansible --version
ansible [core 2.20.0]
config file = /tmp/ansible/ansible.cfg
configured module search path = ['/home/steve/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/steve/.local/lib/python3.14/site-packages/ansible
ansible collection location = /home/steve/.ansible/collections:/usr/share/ansible/collections
executable location = /home/steve/.local/bin/ansible
python version = 3.14.3 (main, Mar 26 2026, 00:00:00) [GCC 16.0.1 20260321 (Red Hat 16.0.1-0)] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.3 (with libyaml v0.2.5)
steve@jabberwock:/tmp/ansible$ ansible-galaxy collection list | grep '^#\|ansible\.'
# /home/steve/.ansible/collections/ansible_collections
ansible.posix 2.1.0
ansible.utils 6.0.2
# /usr/lib/python3.14/site-packages/ansible_collections
ansible.netcommon 8.4.0
ansible.posix 2.1.0
ansible.utils 6.0.1
ansible.windows 3.3.0
steve@jabberwock:/tmp/ansible$ ansible -Kbm ansible.posix.firewalld_info localhost
BECOME password:
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: Importing 'to_native' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.
[DEPRECATION WARNING]: Passing `warnings` to `exit_json` or `fail_json` is deprecated. This feature will be removed from ansible-core version 2.23. Use `AnsibleModule.warn` instead.
localhost | SUCCESS => {
"active_zones": false,
"changed": false,
"collected_zones": [
EXPECTED RESULTS
No deprecation warnings
ACTUAL RESULTS
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: Importing 'to_native' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.
[DEPRECATION WARNING]: Passing `warnings` to `exit_json` or `fail_json` is deprecated. This feature will be removed from ansible-core version 2.23. Use `AnsibleModule.warn` instead.
SUMMARY
firewalld_info gives two deprecation warnings for ansible.utils features to be removed in ansible-core 2.23 and 2.24 with ansible.posix 2.10 and ansible.utils 6.0.2
ISSUE TYPE
COMPONENT NAME
ansible.utils.firewalld_info
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
No deprecation warnings
ACTUAL RESULTS