ansible.netcommon.persistent – Use a persistent unix socket for connection

Note

This plugin is part of the ansible.netcommon collection (version 1.5.0).

To install it use: ansible-galaxy collection install ansible.netcommon.

To use it in a playbook, specify: ansible.netcommon.persistent.

New in version 1.0.0: of ansible.netcommon

Synopsis

  • This is a helper plugin to allow making other connections persistent.

Parameters

Parameter Choices/Defaults Configuration Comments
persistent_command_timeout
integer
Default:
10
ini entries:

[persistent_connection]
command_timeout = 10

env:ANSIBLE_PERSISTENT_COMMAND_TIMEOUT
var: ansible_command_timeout
Configures, in seconds, the amount of time to wait for a command to return from the remote device. If this timer is exceeded before the command returns, the connection plugin will raise an exception and close

Authors

  • Ansible Networking Team

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/ansible/netcommon/persistent_connection.html