diff options
author | Ganesh Nalawade <ganesh634@gmail.com> | 2018-07-30 21:53:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 21:53:44 -0700 |
commit | ea6ef3fae8741694fe70b5cf4b8566e816012f89 (patch) | |
tree | 14d14350e7d802a84447ff303ccb2eb34cfdea93 /bin | |
parent | d03b9eddf66079cae0096335db10488f742c2b34 (diff) | |
download | ansible-ea6ef3fae8741694fe70b5cf4b8566e816012f89.tar.gz |
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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-connection | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection index 0d9ad17131..9b1ae2cd04 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -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()) |