Open and Close WinRM shells with each task?

9 views
Skip to first unread message

Tony Wyatt

unread,
Jun 27, 2019, 3:24:36 PM6/27/19
to Ansible Project
We have noticed as we develop more and more complex plays that our Tower connections to inventory seem to be open/closed per task.

Is this "by design"?

What, if any, options can we specify to afford fewer WinRM sessions per task/play/role, etc?

-T

Jordan Borean

unread,
Jun 27, 2019, 4:23:28 PM6/27/19
to Ansible Project
It is mostly by design as that's how the connection plugins are initialised. Each connection plugin is created post fork for each task executed which means we need to open a WinRM shell then close it for every task.

We've been toying with the idea of connection persistence for a while but nothing has come out of it so far. Potentially a change in the future but there are no guarantees.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages