summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2018-07-30 21:53:44 -0700
committerGitHub <noreply@github.com>2018-07-30 21:53:44 -0700
commitea6ef3fae8741694fe70b5cf4b8566e816012f89 (patch)
tree14d14350e7d802a84447ff303ccb2eb34cfdea93 /bin
parentd03b9eddf66079cae0096335db10488f742c2b34 (diff)
downloadansible-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-xbin/ansible-connection5
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())