Editing /etc/ansible/ansible.cfg

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 380: Line 380:
 
#become_ask_pass=False
 
#become_ask_pass=False
  
</pre>
+
[paramiko_connection]
 +
 
 +
# uncomment this line to cause the paramiko connection plugin to not record new host
 +
# keys encountered.  Increases performance on new host additions.  Setting works independently of the
 +
# host key checking setting above.
 +
#record_host_keys=False
 +
 
 +
# by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
 +
# line to disable this behaviour.
 +
#pty=False
 +
 
 +
# paramiko will default to looking for SSH keys initially when trying to
 +
# authenticate to remote devices.  This is a problem for some network devices
 +
# that close the connection after a key failure.  Uncomment this line to
 +
# disable the Paramiko look for keys function
 +
#look_for_keys = False
 +
 
 +
# When using persistent connections with Paramiko, the connection runs in a
 +
# background process.  If the host doesn't already have a valid SSH key, by
 +
# default Ansible will prompt to add the host key.  This will cause connections
 +
# running in background processes to fail.  Uncomment this line to have
 +
# Paramiko automatically add host keys.
 +
#host_key_auto_add = True
 +
 
 +
[ssh_connection]
 +
 
 +
# ssh arguments to use
 +
# Leaving off ControlPersist will result in poor performance, so use
 +
# paramiko on older platforms rather than removing it, -C controls compression use
 +
#[[ssh_args]] = -C -o ControlMaster=auto -o ControlPersist=60s
  
[paramiko_connection]
+
# The base directory for the ControlPath sockets.
+
# This is the "%(directory)s" in the control_path option
# uncomment this line to cause the paramiko connection plugin to not record new host
+
#
# keys encountered.  Increases performance on new host additions.  Setting works independently of the
+
# Example:
# host key checking setting above.
+
# control_path_dir = /tmp/.ansible/cp
#record_host_keys=False
+
#control_path_dir = ~/.ansible/cp
 
# by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
 
# line to disable this behaviour.
 
#pty=False
 
  
# paramiko will default to looking for SSH keys initially when trying to
+
# The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname,
# authenticate to remote devices.  This is a problem for some network devices
+
# port and username (empty string in the config). The hash mitigates a common problem users
# that close the connection after a key failure.  Uncomment this line to
+
# found with long hostnames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format.
# disable the Paramiko look for keys function
+
# In those cases, a "too long for Unix domain socket" ssh error would occur.
#look_for_keys = False
+
#
+
# Example:
# When using persistent connections with Paramiko, the connection runs in a
+
# control_path = %(directory)s/%%h-%%r
# background process.  If the host doesn't already have a valid SSH key, by
+
#control_path =
# default Ansible will prompt to add the host key.  This will cause connections
 
# running in background processes to fail.  Uncomment this line to have
 
# Paramiko automatically add host keys.
 
#host_key_auto_add = True
 
 
[ssh_connection]
 
 
# ssh arguments to use
 
# Leaving off ControlPersist will result in poor performance, so use
 
# paramiko on older platforms rather than removing it, -C controls compression use
 
#[[ssh_args]] = -C -o ControlMaster=auto -o ControlPersist=60s
 
 
# The base directory for the ControlPath sockets.
 
# This is the "%(directory)s" in the control_path option
 
#
 
# Example:
 
# control_path_dir = /tmp/.ansible/cp
 
#control_path_dir = ~/.ansible/cp
 
 
# The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname,
 
# port and username (empty string in the config). The hash mitigates a common problem users
 
# found with long hostnames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format.
 
# In those cases, a "too long for Unix domain socket" ssh error would occur.
 
#
 
# Example:
 
# control_path = %(directory)s/%%h-%%r
 
#control_path =
 
  
 +
</pre>
 
  # Enabling pipelining reduces the number of SSH operations required to
 
  # Enabling pipelining reduces the number of SSH operations required to
 
  # execute a module on the remote server. This can result in a significant
 
  # execute a module on the remote server. This can result in a significant

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: