summaryrefslogtreecommitdiffstats
path: root/ansible.cfg
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-03-13 16:43:50 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:43 +0200
commitd72d516f2647a3e03b5e11d891c6ec4e9ddcf9cf (patch)
tree3d8e0f75a74d710aa1f0d84ce27daea302acb6e1 /ansible.cfg
parent984708466b7c368e98a8b51c00acff5e6b870bd2 (diff)
Make use of Ansible 1.5 new features.
Most notably pipelining=True and sysctl_set=yes.
Diffstat (limited to 'ansible.cfg')
-rw-r--r--ansible.cfg36
1 files changed, 24 insertions, 12 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 6afc1ef..82de41a 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -28,49 +28,57 @@ pattern = *
# the default number of forks (parallelism) to be used. Usually you
# can crank this up.
-forks=5
+forks = 5
# the timeout used by various connection types. Usually this corresponds
# to an SSH timeout
-timeout=10
+timeout = 10
# when using --poll or "poll:" in an ansible playbook, and not specifying
# an explicit poll interval, use this interval
-poll_interval=15
+poll_interval = 15
# when specifying --sudo to /usr/bin/ansible or "sudo:" in a playbook,
# and not specifying "--sudo-user" or "sudo_user" respectively, sudo
# to this user account
-sudo=True
-#sudo_user=root
+sudo = True
+#sudo_user = root
+
+# what flags to pass to sudo
+sudo_flags = -H LC_ALL=C
# the following forces ansible to always ask for the sudo password (instead of having
# to add -K to the commandline). Or you can use the environment variable (ANSIBLE_ASK_SUDO_PASS)
-ask_sudo_pass=True
+ask_sudo_pass = True
# the following forces ansible to always ask for the ssh-password (-k)
# can also be set by the environment variable ANSIBLE_ASK_PASS
-#ask_pass=True
+#ask_pass = True
# connection to use when -c <connection_type> is not specified
-transport=ssh
+transport = ssh
# remote SSH port to be used when --port or "port:" or an equivalent inventory
# variable is not specified.
-remote_port=22
+remote_port = 22
# if set, always run /usr/bin/ansible commands as this user, and assume this value
# if "user:" is not set in a playbook. If not set, use the current Unix user
# as the default
-#remote_user=root
+#remote_user = root
+
+# if set, always use this private key file for authentication, same as if passing
+# --private-key to ansible or ansible-playbook
+
+#private_key_file=/path/to/file
# format of string $ansible_managed available within Jinja2 templates, replacing
# {file}, {host} and {uid} with template filename, host and owner respectively.
@@ -88,11 +96,15 @@ connection_plugins = /usr/share/ansible_plugins/connection_plugins
lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
vars_plugins = /usr/share/ansible_plugins/vars_plugins
-legacy_playbook_variables = no
-
[ssh_connection]
+# if uncommented, sets the ansible ssh arguments to the following. Leaving off ControlPersist
+# will result in poor performance, so use transport=paramiko on older platforms rather than
+# removing it
+
ssh_args = -F ../virtualenv/.ssh/config
-o ControlMaster=auto
-o ControlPersist=60s
-o ControlPath=/tmp/ansible-ssh-%h-%p-%r
+
+pipelining = True