I imagine what you are in need of is ControlPath, ControlMaster,
ControlPersist.

Those should be the default if you are using the 'ssh' transport.  Using
the 'paramiko' transport will not invoke those options.

What OS and OpenSSH client version do you have on the control machine?

You should additionally be able to determine if you are using paramiko or
ssh using -vvvv

Also, do you have any ssh_args set in ansible.cfg or via ANSIBLE_SSH_ARGS?

On Wed, Dec 10, 2014 at 3:43 PM, <[email protected]> wrote:

> Hi,
>
> I think I have a configuration problem, but I'm not sure what to search on
> to find an answer. I've tried 'wtmp' or 'last' or 'lots of ssh logins', but
> I don't find quite what I'm looking for. So I think a question and an
> example might be easiest.
>
> We have an 'ansible' user on our Ansible clients that the server logs into
> using SSH, and then sudos to run playbooks, etc.
>
> Whenever Ansible runs (as you can see below), that ansible user logs in
> many, many times to run playbooks, and fills up the wtmp/lastlog so that
> every time I log in and run 'last', I have to filter out the 'ansible' user.
>
> I'm not sure what configuration options might be influencing this, whether
> it might be accelerate, pipelining, etc.
>
> If anyone's seen this before and has figured it out, I'd love a tip to get
> me going in the right direction. Or, if this is normal behavior, that'd be
> useful information, too.
>
> Thanks,
> Matt
>
> An example from one machine and one ansible run:
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:08 - 21:08  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:07 - 21:07  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:06 - 21:06  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:05 - 21:05  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:04 - 21:04  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:04 - 21:04  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:04 - 21:04  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:04 - 21:04  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:04 - 21:04  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:03 - 21:03  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:02 - 21:02  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:01 - 21:01  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
> ansible  pts/0        <source_host> Mon Dec  1 21:00 - 21:00  (00:00)
>
>
>
>  --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e9ebb73d-a9a3-42e9-97d6-7c7d5cadf5cd%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e9ebb73d-a9a3-42e9-97d6-7c7d5cadf5cd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v8O15-Eq6AdJjw0sePLVCw_F_q3jqVVMaaPbQPjmnfDiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to