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 /ansible.cfg | |
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 .
Diffstat (limited to 'ansible.cfg')
-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 @@ -22,23 +22,23 @@ callback_plugins = ./lib/callback_plugins connection_plugins = ./lib/connection_plugins lookup_plugins = ./lib/lookup_plugins vars_plugins = ./lib/vars_plugins # retry files # When a playbook fails by default a .retry file will be created in ~/ # You can disable this feature by setting retry_files_enabled to False # and you can change the location of the files by setting retry_files_save_path retry_files_enabled = False #retry_files_save_path = ~/.ansible-retry [privilege_escalation] become=True become_method=sudo #become_user=root 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 |