diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-12-12 12:08:07 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-12-12 12:24:58 +0100 |
commit | 5fd32087516232825b690e60c1d5f7633d7c76f2 (patch) | |
tree | 83828d13eba540812715537a137b29f106e2d669 | |
parent | 07218fc1e6caf4299dd453744d6e9e53854f75ab (diff) |
ansible.cfg: Use ControlPath=$XDG_RUNTIME_DIR/ssh-ansible-%C
Best not to pollute the homedir with UNIX domain sockets…
Note that variable expansion is only available in OpenSSH 8.4 and later,
cf. https://bugzilla.mindrot.org/show_bug.cgi?id=3140 .
-rw-r--r-- | ansible.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible.cfg b/ansible.cfg index fac3b72..09c8745 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -39,6 +39,6 @@ become_ask_pass=True [ssh_connection] -control_path = ~/.ssh/S.ansible-%%C +control_path = ${XDG_RUNTIME_DIR}/ssh-ansible-%%C ssh_args = -oHashKnownHosts=no -oUserKnownHostsFile=./certs/ssh_known_hosts -oStrictHostKeyChecking=yes -oControlMaster=auto -oControlPersist=60s pipelining = True |