def run(self): """Returns the path of the persistent connection socket. Attempts to ensure (within playcontext.timeout seconds) that the socket path exists. If the path exists (or the timeout has expired), returns the socket path. """ display.vvvv( "starting connection from persistent connection plugin", host=self._play_context.remote_addr, ) variables = { "ansible_command_timeout": self.get_option( "persistent_command_timeout" ) } socket_path = start_connection( self._play_context, variables, self._task_uuid ) display.vvvv( "local domain socket path is %s" % socket_path, host=self._play_context.remote_addr, ) setattr(self, "_socket_path", socket_path) return socket_path
def run(self): """Returns the path of the persistent connection socket. Attempts to ensure (within playcontext.timeout seconds) that the socket path exists. If the path exists (or the timeout has expired), returns the socket path. """ display.vvvv('starting connection from persistent connection plugin', host=self._play_context.remote_addr) variables = { 'ansible_command_timeout': self.get_option('persistent_command_timeout') } socket_path = start_connection(self._play_context, variables) display.vvvv('local domain socket path is %s' % socket_path, host=self._play_context.remote_addr) setattr(self, '_socket_path', socket_path) return socket_path