Why would you need to check whether the connection plugin supports such a 
new feature? ConnectionBase already has methods for _connect, connected, 
reset and close, separate from exec_command, put_file and fetch_file
 So wouldn't this work for all connection plugins if Ansible just starts 
calling exec_command and put_file multiple times per connection? 

--
Matt

Le jeudi 13 juillet 2023 à 00:09:43 UTC+10, Brian Coca a écrit :

> Kind of, there is ansible-connection but it can be complicated. I've
> been toying around with the idea of a 'persistent: no|yes' keyword to
> allow for the use/reuse of persistent sessions. This would first look
> at the connection plugin for support and fallback to a connection
> manager+ansible-connection on controller otherwise.
>
>
> -- 
> ----------
> Brian Coca
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8c256726-1f88-4783-90ee-f522377aad9an%40googlegroups.com.

Reply via email to