2012-08-13 23:17:14 +00:00
|
|
|
# config file for ansible -- http://ansible.github.com
|
|
|
|
# nearly all parameters can be overridden in ansible-playbook or with command line flags
|
2012-08-20 19:18:37 +00:00
|
|
|
# ansible will read ~/.ansible.cfg or /etc/ansible/ansible.cfg, whichever it finds first
|
2012-08-13 23:17:14 +00:00
|
|
|
|
|
|
|
[defaults]
|
|
|
|
|
|
|
|
# location of inventory file, eliminates need to specify -i
|
|
|
|
|
|
|
|
hostfile = /etc/ansible/hosts
|
|
|
|
|
|
|
|
# location of ansible library, eliminates need to specify --module-path
|
|
|
|
|
2012-08-14 00:08:03 +00:00
|
|
|
library = /usr/share/ansible
|
2012-08-13 23:17:14 +00:00
|
|
|
|
|
|
|
# default module name used in /usr/bin/ansible when -m is not specified
|
|
|
|
|
|
|
|
module_name = command
|
|
|
|
|
2013-04-27 14:24:26 +00:00
|
|
|
# location for ansible log file. If set, will store output from ansible
|
|
|
|
# and ansible-playbook. If enabling, you may wish to configure
|
|
|
|
# logrotate.
|
|
|
|
|
|
|
|
#log_path = /var/log/ansible.log
|
|
|
|
|
2012-08-13 23:17:14 +00:00
|
|
|
# home directory where temp files are stored on remote systems. Should
|
|
|
|
# almost always contain $HOME or be a directory writeable by all users
|
|
|
|
|
|
|
|
remote_tmp = $HOME/.ansible/tmp
|
|
|
|
|
2012-09-07 18:34:36 +00:00
|
|
|
# the default pattern for ansible-playbooks ("hosts:")
|
2012-08-13 23:17:14 +00:00
|
|
|
|
|
|
|
pattern = *
|
|
|
|
|
|
|
|
# the default number of forks (parallelism) to be used. Usually you
|
|
|
|
# can crank this up.
|
|
|
|
|
|
|
|
forks=5
|
|
|
|
|
|
|
|
# the timeout used by various connection types. Usually this corresponds
|
|
|
|
# to an SSH timeout
|
|
|
|
|
|
|
|
timeout=10
|
|
|
|
|
|
|
|
# when using --poll or "poll:" in an ansible playbook, and not specifying
|
|
|
|
# an explicit poll interval, use this interval
|
|
|
|
|
|
|
|
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_user=root
|
|
|
|
|
2012-11-03 23:23:38 +00:00
|
|
|
# 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)
|
2012-11-01 12:13:10 +00:00
|
|
|
|
|
|
|
#ask_sudo_pass=True
|
|
|
|
|
2012-11-03 23:23:38 +00:00
|
|
|
# the following forces ansible to always ask for the ssh-password (-k)
|
2012-11-02 15:53:26 +00:00
|
|
|
# can also be set by the environment variable ANSIBLE_ASK_PASS
|
|
|
|
|
2012-11-03 23:23:38 +00:00
|
|
|
#ask_pass=True
|
2012-11-02 15:53:26 +00:00
|
|
|
|
2012-08-13 23:17:14 +00:00
|
|
|
# connection to use when -c <connection_type> is not specified
|
|
|
|
|
|
|
|
transport=paramiko
|
|
|
|
|
|
|
|
# remote SSH port to be used when --port or "port:" or an equivalent inventory
|
|
|
|
# variable is not specified.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-01-23 05:58:16 +00:00
|
|
|
# the default sudo executable. If a sudo alternative with a sudo-compatible interface
|
|
|
|
# is used, specify its executable name as the default
|
|
|
|
|
|
|
|
sudo_exe=sudo
|
|
|
|
|
2013-01-28 16:41:43 +00:00
|
|
|
# the default flags passed to sudo
|
|
|
|
# sudo_flags=-H
|
|
|
|
|
2013-04-04 23:39:22 +00:00
|
|
|
# all commands executed under sudo are passed as arguments to a shell command
|
|
|
|
# This shell command defaults to /bin/sh
|
|
|
|
# Changing this helps the situation where a user is only allowed to run
|
|
|
|
# e.g. /bin/bash with sudo privileges
|
|
|
|
|
|
|
|
# executable = /bin/sh
|
|
|
|
|
2013-01-23 20:39:34 +00:00
|
|
|
# how to handle hash defined in several places
|
|
|
|
# hash can be merged, or replaced
|
|
|
|
# if you use replace, and have multiple hashes named 'x', the last defined
|
|
|
|
# will override the previously defined one
|
|
|
|
# if you use merge here, hash will cumulate their keys, but keys will still
|
|
|
|
# override each other
|
|
|
|
# replace is the default value, and is how ansible always handled hash variables
|
|
|
|
#
|
|
|
|
# hash_behaviour=replace
|
|
|
|
|
2013-05-06 13:48:52 +00:00
|
|
|
# How to handle variable replacement - as of 1.2, Jinja2 variable syntax is
|
|
|
|
# preferred, but we still support the old $variable replacement too.
|
|
|
|
# If you change legacy_playbook_variables to no then Ansible will no longer
|
|
|
|
# try to do replacement on $variable style variables.
|
|
|
|
#
|
|
|
|
# legacy_playbook_variables=yes
|
|
|
|
|
2013-02-13 09:10:16 +00:00
|
|
|
# if you need to use jinja2 extensions, you can list them here
|
|
|
|
# use a coma to separate extensions, e.g. :
|
2013-02-13 16:33:43 +00:00
|
|
|
# jinja2_extensions=jinja2.ext.do,jinja2.ext.i18n
|
2013-02-13 09:10:16 +00:00
|
|
|
# no extensions are loaded by default
|
|
|
|
|
2013-02-13 16:33:43 +00:00
|
|
|
#jinja2_extensions=
|
2013-02-13 09:10:16 +00:00
|
|
|
|
2012-08-13 23:17:14 +00:00
|
|
|
# if set, always use this private key file for authentication, same as if passing
|
2012-09-07 18:34:36 +00:00
|
|
|
# --private-key to ansible or ansible-playbook
|
2012-08-13 23:17:14 +00:00
|
|
|
|
|
|
|
#private_key_file=/path/to/file
|
|
|
|
|
2012-10-03 13:59:38 +00:00
|
|
|
# format of string $ansible_managed available within Jinja2 templates, replacing
|
|
|
|
# {file}, {host} and {uid} with template filename, host and owner respectively.
|
|
|
|
# The resulting string is passed through strftime(3) so it may contain any
|
|
|
|
# time-formatting specifiers.
|
|
|
|
#
|
|
|
|
# Example: ansible_managed = DONT TOUCH {file}: call {uid} at {host} for changes
|
|
|
|
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
|
|
|
|
|
2012-10-26 23:55:59 +00:00
|
|
|
# additional plugin paths for non-core plugins
|
|
|
|
|
|
|
|
action_plugins = /usr/share/ansible_plugins/action_plugins
|
|
|
|
callback_plugins = /usr/share/ansible_plugins/callback_plugins
|
|
|
|
connection_plugins = /usr/share/ansible_plugins/connection_plugins
|
|
|
|
lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
|
2012-10-27 00:19:09 +00:00
|
|
|
vars_plugins = /usr/share/ansible_plugins/vars_plugins
|
2013-01-17 21:07:39 +00:00
|
|
|
filter_plugins = /usr/share/ansible_plugins/filter_plugins
|
2012-10-26 23:55:59 +00:00
|
|
|
|
2013-04-23 14:40:11 +00:00
|
|
|
# set to 1 if you don't want cowsay support. Alternatively, set ANSIBLE_NOCOWS=1
|
|
|
|
# in your environment
|
|
|
|
# nocows = 1
|
|
|
|
|
2012-08-15 00:13:02 +00:00
|
|
|
[paramiko_connection]
|
|
|
|
|
|
|
|
# nothing to configure yet
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
2013-05-08 12:51:01 +00:00
|
|
|
ssh_args=-o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r
|
2012-08-15 00:13:02 +00:00
|
|
|
|
2012-11-08 19:32:56 +00:00
|
|
|
# the following makes ansible use scp if the connection type is ssh (default is sftp)
|
|
|
|
|
|
|
|
#scp_if_ssh=True
|
|
|
|
|
2012-08-15 00:13:02 +00:00
|
|
|
|