]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
keep port as part of the control path 1573/head
authormh <mh@immerda.ch>
Tue, 30 May 2017 16:25:29 +0000 (18:25 +0200)
committermh <mh@immerda.ch>
Tue, 30 May 2017 16:28:39 +0000 (18:28 +0200)
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

index 87f54df0ae8ba1e7a08ade55333c6415aee26c60..9b0afd7f40d6393e0e50b3c8f5cb8409e78b89ef 100644 (file)
@@ -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