mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Enable setting options for cliconf and other implementation plugins (if set to configurable) (#43368)
* Enable setting setting cliconf plugin options Fixes #43367 * Add support to set configuration options for implementation plugins (eg: cliconf) from `ansible-connection` * Fix CI failure
This commit is contained in:
parent
d03b9eddf6
commit
ea6ef3fae8
4 changed files with 17 additions and 1 deletions
|
@ -85,6 +85,11 @@ class ConnectionProcess(object):
|
|||
ansible_playbook_pid=self._ansible_playbook_pid)
|
||||
self.connection.set_options(var_options=variables)
|
||||
self.connection._connect()
|
||||
|
||||
# implementation plugins are updated while connection initialization
|
||||
if hasattr(self.connection, 'set_implementation_plugin_options'):
|
||||
self.connection.set_implementation_plugin_options(var_options=variables)
|
||||
|
||||
self.connection._socket_path = self.socket_path
|
||||
self.srv.register(self.connection)
|
||||
messages.extend(sys.stdout.getvalue().splitlines())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue