disable [DEPRECATION WARNING] on python-version while Ansible execution
I am getting a DEPRECATION WARNING
when running ansible ad-hoc command or executing a playbook like this:
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18
2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)].
how can I disable/surpress that?
Configure your hosts to use a supported version of python.
set deprecation_warnings=False
in the [defaults]
section of your effective configuration file (i.e. /etc/ansible/ansible.cfg
, ~/.ansible.cfg
)