Ansible-core 2.19 Porting Guide
This section discusses the behavioral changes between ansible-core
2.18 and ansible-core
2.19.
It is intended to assist in updating your playbooks, plugins and other parts of your Ansible infrastructure so they will work with this version of Ansible.
We suggest you read this page along with ansible-core Changelog for 2.19 to understand what updates you may need to make.
This document is part of a collection on porting. The complete list of porting guides can be found at porting guides.
Playbook
Timeout waiting on privilege escalation (
become
) is now an unreachable error instead of a task error. Existing playbooks should be changed to replaceignore_errors
withignore_unreachable
on tasks where timeout onbecome
should be ignored.Error
Timeout (12s) waiting for privilege escalation prompt:
Command Line
No notable changes
Deprecated
No notable changes
Modules
No notable changes
Modules removed
The following modules no longer exist:
No notable changes
Deprecation notices
No notable changes
Noteworthy module changes
No notable changes
Plugins
The
ssh
connection plugin now supports usingSSH_ASKPASS
to supply passwords for authentication as an alternative to thesshpass
program. The default is to useSSH_ASKPASS
instead ofsshpass
. This is controlled by thepassword_mechanism
configuration for thessh
connection plugin. To switch back to usingsshpass
make one of the following changes:To your
ansible.cfg
file:[ssh_connection] password_mechanism = sshpass
By exporting an environment variable:
export ANSIBLE_SSH_PASSWORD_MECHANISM=sshpass
By setting the following variable:
ansible_ssh_password_mechanism: sshpass
Porting custom scripts
No notable changes
Networking
No notable changes