News for hackers. Stuff that matters.
Re:Project Wisdom for Red Hat Ansible by candiddevmike on Friday October 21, 2022 @11:00AM (#33288704)
Control persist still creates multiple SSH sessions though?

I have a SSH hook that sends a chat message whenever someone SSHs into a server, and Ansible without mitogen floods these, even with ControlPersist.

If you have it working, can you share your ansible.cfg?

Re:Project Wisdom for Red Hat Ansible by Spivak on Friday October 21, 2022 @12:02PM (#33289506)
Well yeah, because ControlPersist is just “make session creation fast” by multiplexing them over a single SSH tunnel. So you still have “ssh internal session creation” overhead but the tcp and ssh handshake is the slow part. The speed gap between pipelining with ControlPersist and Mitogen is small enough that it’s, to me, not worth the bugs and limitations of Mitogen.

I do get the annoyance of your script though.