From 04b22a6b352505ff1bfc5caa0a862dccb49ad00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Pawe=C5=82=20G=C5=82azik?= Date: Thu, 7 May 2020 21:52:42 +0200 Subject: [PATCH] Change example ControlPath to be short and unique (#69347) Use %C as the ControlPath setting in the example config file. The old setting used %h and %r tokens, which break ansible for a few use cases, including packer provisioning, where hostname is always 127.0.0.1. %C is a hash of local host, remote host, username and port. --- examples/ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ansible.cfg b/examples/ansible.cfg index f14dd9e0eb0..a3c58008bc8 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -392,7 +392,7 @@ # In those cases, a "too long for Unix domain socket" ssh error would occur. # # Example: -# control_path = %(directory)s/%%h-%%r +# control_path = %(directory)s/%%C #control_path = # Enabling pipelining reduces the number of SSH operations required to