[DEPRECATION WARNING]: PARAMIKO_LOOK_FOR_KEYS option

Ever since we upgraded our EE to Ansible 2.18 we always get a Deprecation warning, but I’m not finding any references to PARAMIKO_LOOK_FOR_KEYS in our ansible.cfg that sits in the root of the project or in any playbooks.

I don’t want to disable all deprecation warnings, but is this legit or something that I’m missing for this particular one? I had assumed we were seeing it because something was set to use the deprecated feature, but is that a false assumption?

ansible --version
[DEPRECATION WARNING]: PARAMIKO_LOOK_FOR_KEYS option. Reason: This option was moved to the plugin itself Alternatives: Use the option from the plugin itself. This feature 
will be removed in version 2.20. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ansible [core 2.18.7]
  config file = /runner/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections:/runner/collections
  executable location = /usr/local/bin/ansible
  python version = 3.12.11 (main, Jun  4 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-7)] (/usr/bin/python3.12)
  jinja version = 3.1.6
  libyaml = True

PARAMIKO_LOOK_FOR_KEYS is the name of an option that can be found in the config reference: Ansible Configuration Settings — Ansible Community Documentation.

I think the only way to avoid the deprecation warning (besides not use the option) would be to add additional configuration options to ansible.builtin.paramiko_ssh connection – Run tasks via Python SSH (paramiko) — Ansible Community Documentation since they’re the same as the global (deprecated) options… But 2.18 is receiving only critical fixes at this point and the connection plugin itself is deprecated in 2.19.

You can run ansible-config dump --only-changed to see global configuration options (and append -t all to include all plugin configuration options).

Thank you for the command. I look silly because this ultimately is in my ansible.cfg file, just slightly different.

I was searching my entire project for PARAMIKO_LOOK_FOR_KEYS which I didn’t find, but it was there as

[paramiko_connection]
look_for_keys = no

Removing that from my ansible.cfg removed the deprecation warning.