From 64b7b88fb76231a32f6f789be36261ab20b36508 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 30 May 2017 18:25:29 +0200 Subject: [PATCH] keep port as part of the control path On a Vagrant setup, every host is 127.0.0.1 and every user is vagrant. To not have ansible do the same stuff on the same machine (the one we connected first), we should keep the port as part of the control path. Also this helps in setups where different hosts might be hidden behind the same IP, but on different ports (e.g. using DNAT). --- ansible.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible.cfg b/ansible.cfg index 87f54df0a..9b0afd7f4 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -10,4 +10,4 @@ log_path = /var/log/ansible.log [ssh_connection] # see: https://github.com/ansible/ansible/issues/11536 -control_path = %(directory)s/%%h-%%r +control_path = %(directory)s/%%h-%%r-%%p -- 2.39.5