2012-08-14 01:17:14 +02: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 21:18:37 +02:00
|
|
|
# ansible will read ~/.ansible.cfg or /etc/ansible/ansible.cfg, whichever it finds first
|
2012-08-14 01:17:14 +02: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 02:08:03 +02:00
|
|
|
library = /usr/share/ansible
|
2012-08-14 01:17:14 +02:00
|
|
|
|
|
|
|
# default module name used in /usr/bin/ansible when -m is not specified
|
|
|
|
|
|
|
|
module_name = command
|
|
|
|
|
|
|
|
# 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 20:34:36 +02:00
|
|
|
# the default pattern for ansible-playbooks ("hosts:")
|
2012-08-14 01:17:14 +02: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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# if set, always use this private key file for authentication, same as if passing
|
2012-09-07 20:34:36 +02:00
|
|
|
# --private-key to ansible or ansible-playbook
|
2012-08-14 01:17:14 +02:00
|
|
|
|
|
|
|
#private_key_file=/path/to/file
|
|
|
|
|
2012-10-03 15:59:38 +02: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-08-15 02:13:02 +02: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
|
|
|
|
|
2012-08-28 15:28:08 +02:00
|
|
|
ssh_args=-o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r
|
2012-08-15 02:13:02 +02:00
|
|
|
|
|
|
|
|