summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2013-09-19 04:10:32 +0200
committerJames Cammarata <jimi@sngx.net>2013-09-19 04:10:32 +0200
commit848a9667362539277a5953f5536b874f59c357d5 (patch)
tree770d954785a44550d4aa215cc35dfd5c5327a7d4 /examples
parentMake ssh's ControlPath configurable via ansible.cfg (diff)
downloadansible-848a9667362539277a5953f5536b874f59c357d5.tar.xz
ansible-848a9667362539277a5953f5536b874f59c357d5.zip
Adding example section to ansible.cfg for the control_path setting
Diffstat (limited to 'examples')
-rw-r--r--examples/ansible.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/ansible.cfg b/examples/ansible.cfg
index 1fb54b6213..57e721a77b 100644
--- a/examples/ansible.cfg
+++ b/examples/ansible.cfg
@@ -108,6 +108,17 @@ filter_plugins = /usr/share/ansible_plugins/filter_plugins
# paramiko on older platforms rather than removing it
#ssh_args = -o ControlMaster=auto -o ControlPersist=60s
+# The path to use for the ControlPath sockets. This defaults to
+# "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with
+# very long hostnames or very long path names (caused by long user names or
+# deeply nested home directories) this can exceed the character limit on
+# file socket names (108 characters for most platforms). In that case, you
+# may wish to shorten the string below.
+#
+# Example:
+# control_path = %(directory)s/%%h-%%r
+#control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
+
# if True, make ansible use scp if the connection type is ssh
# (default is sftp)
#scp_if_ssh = True