mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Solved ansible multiplexing auth bug
This commit is contained in:
parent
1a42e8bd14
commit
2067804e9f
11
ansible.cfg
11
ansible.cfg
@ -19,9 +19,14 @@ lookup_plugins = ./lookup_plugins
|
|||||||
module_utils = ./module_utils
|
module_utils = ./module_utils
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
pipelining = True
|
# Multiplexing: safer socket path in HOME instead of /tmp
|
||||||
scp_if_ssh = smart
|
ssh_args = -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/ansible-%h-%p-%r \
|
||||||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%%h-%%p-%%r
|
-o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=accept-new \
|
||||||
|
-o PreferredAuthentications=publickey,password,keyboard-interactive
|
||||||
|
|
||||||
|
# Pipelining boosts speed; works fine if sudoers does not enforce "requiretty"
|
||||||
|
pipelining = True
|
||||||
|
scp_if_ssh = smart
|
||||||
|
|
||||||
[persistent_connection]
|
[persistent_connection]
|
||||||
connect_timeout = 30
|
connect_timeout = 30
|
||||||
|
Loading…
x
Reference in New Issue
Block a user