Ansible 2.15 Warning message

Hi Team,

Recently we have upgraded to ansible 2.15 and we are getting below WARNINGS.

Please find the below for the ansible version and collection installed.

~$ ansible-galaxy collection list -p /home/test/

[DEPRECATION WARNING]: DEFAULT_GATHER_SUBSET option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults

instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

/home/test/ansible_collections

Collection Version


ansible.posix 1.5.4

ansible.utils 2.10.3

community.general 4.6.1

:~$

:~$ ansible --version

ansible-playbook [core 2.15.2]

config file = /home/test/ansible.cfg

configured module search path = [‘/home/test/modules’]

ansible python module location = /usr/local/lib/python3.9/site-packages/ansible

ansible collection location = /home/test

executable location = /usr/local/bin/ansible-playbook

python version = 3.9.16 (main, Dec 21 2022, 10:57:18) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)] (/usr/bin/python3.9)

jinja version = 3.1.2

libyaml = False

Ansible playbook used for the testing:

:~$ cat test.yml

Hi Team,

Can someone help with this issue ?

Hi,

I think it would help if you would say which specific message do you
mean. There are a lot of different messages in what you posted.

Cheers,
Felix

The first warning seems like a deprecation, which you should be able
to check via `ansible-config dump --only-changed`.
The 2nd warning seems due to a ansible-core vs selective callback
plugin version mismatch.
The 3rd is probably also a version incompatibility, but for the
ansible.netcommon collection. I would open an issue in here
https://github.com/ansible-collections/ansible.netcommon/issues