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