examples/ansible.cfg
d07a3b5e
 # config file for ansible -- http://ansible.com/
 # ==============================================
637983cf
 
 # nearly all parameters can be overridden in ansible-playbook 
80ddd1ca
 # or with command line flags. ansible will read ANSIBLE_CONFIG,
 # ansible.cfg in the current working directory, .ansible.cfg in
 # the home directory or /etc/ansible/ansible.cfg, whichever it
 # finds first
62fbbf76
 
 [defaults]
 
637983cf
 # some basic default values...
62fbbf76
 
637983cf
 hostfile       = /etc/ansible/hosts
 library        = /usr/share/ansible
 remote_tmp     = $HOME/.ansible/tmp
 pattern        = *
 forks          = 5
 poll_interval  = 15
 sudo_user      = root
 #ask_sudo_pass = True
 #ask_pass      = True
c55adc9a
 transport      = smart
637983cf
 remote_port    = 22
fb14b531
 module_lang    = C
62fbbf76
 
e639b538
 # plays will gather facts by default, which contain information about
 # the remote system.
 #
 # smart - gather by default, but don't regather if already gathered
 # implicit - gather by default, turn off with gather_facts: False
 # explicit - do not gather by default, must say gather_facts: True
 gathering = implicit
4dfa40f1
 
8808e029
 # additional paths to search for roles in, colon separated
fee360f3
 #roles_path    = /etc/ansible/roles
 
9db4f7a9
 # uncomment this to disable SSH key host checking
d96cedca
 #host_key_checking = False
9db4f7a9
 
637983cf
 # change this for alternative sudo implementations
3eeacaba
 sudo_exe = sudo
62fbbf76
 
637983cf
 # what flags to pass to sudo
3eeacaba
 #sudo_flags = -H
62fbbf76
 
637983cf
 # SSH timeout
3eeacaba
 timeout = 10
7d67ecfb
 
637983cf
 # default user to use for playbooks if user is not specified
 # (/usr/bin/ansible will use current user as default)
3eeacaba
 #remote_user = root
7d67ecfb
 
637983cf
 # logging is off by default unless this path is defined
 # if so defined, consider logrotate
3eeacaba
 #log_path = /var/log/ansible.log
5268d49b
 
637983cf
 # default module name for /usr/bin/ansible
3eeacaba
 #module_name = command
c4442ad8
 
637983cf
 # use this shell for commands executed under sudo
 # you may need to change this to bin/bash in rare instances
 # if sudo is constrained
3eeacaba
 #executable = /bin/sh
c4442ad8
 
637983cf
 # if inventory variables overlap, does the higher precedence one win
 # or are hash values merged together?  The default is 'replace' but
 # this can also be set to 'merge'.
3eeacaba
 #hash_behaviour = replace
e28e538c
 
637983cf
 # list any Jinja2 extensions to enable here:
3eeacaba
 #jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
62fbbf76
 
637983cf
 # if set, always use this private key file for authentication, same as 
 # if passing --private-key to ansible or ansible-playbook
3eeacaba
 #private_key_file = /path/to/file
62fbbf76
 
637983cf
 # format of string {{ ansible_managed }} available within Jinja2 
 # templates indicates to users editing templates files will be replaced.
e2cf3b2d
 # replacing {file}, {host} and {uid} and strftime codes with proper values.
9ed59da2
 ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
 
d5f20e6b
 # by default, ansible-playbook will display "Skipping [host]" if it determines a task
c8fa83c9
 # should not be run on a host.  Set this to "False" if you don't want to see these "Skipping" 
 # messages. NOTE: the task header will still be shown regardless of whether or not the 
 # task is skipped.
 #display_skipped_hosts = True
d5f20e6b
 
ad595ead
 # by default (as of 1.3), Ansible will raise errors when attempting to dereference 
 # Jinja2 variables that are not set in templates or action lines. Uncomment this line
 # to revert the behavior to pre-1.3.
 #error_on_undefined_vars = False
bac81be3
 
6069ff6e
 # by default (as of 1.6), Ansible may display warnings based on the configuration of the
 # system running ansible itself. This may include warnings about 3rd party packages or
 # other conditions that should be resolved if possible.
 # to disable these warnings, set the following value to False:
 #system_warnings = True
 
 # by default (as of 1.4), Ansible may display deprecation warnings for language
 # features that should no longer be used and will be removed in future versions.
 # to disable these warnings, set the following value to False:
 #deprecation_warnings = True
 
8808e029
 # set plugin path directories here, separate with colons
6ba30170
 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
7f6aa2d3
 vars_plugins       = /usr/share/ansible_plugins/vars_plugins
a278a60c
 filter_plugins     = /usr/share/ansible_plugins/filter_plugins
6ba30170
 
637983cf
 # don't like cows?  that's unfortunate.
 # set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1 
3eeacaba
 #nocows = 1
dfd885a0
 
0c96d8af
 # don't like colors either?
 # set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1
 #nocolor = 1
 
97301575
 # the CA certificate path used for validating SSL certs. This path 
 # should exist on the controlling node, not the target nodes
 # common locations:
 # RHEL/CentOS: /etc/pki/tls/certs/ca-bundle.crt
 # Fedora     : /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
 # Ubuntu     : /usr/share/ca-certificates/cacert.org/cacert.org.crt
 #ca_file_path = 
 
 # the http user-agent string to use when fetching urls. Some web server
 # operators block the default urllib user agent as it is frequently used
 # by malicious attacks/scripts, so we set it to something unique to 
 # avoid issues.
 #http_user_agent = ansible-agent
 
9851066f
 [paramiko_connection]
 
cf6e1f8d
 # uncomment this line to cause the paramiko connection plugin to not record new host
8a82b5c8
 # keys encountered.  Increases performance on new host additions.  Setting works independently of the
cf6e1f8d
 # host key checking setting above.
 #record_host_keys=False
9851066f
 
65178290
 # by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
 # line to disable this behaviour.
ca96d745
 #pty=False
 
9851066f
 [ssh_connection]
 
637983cf
 # ssh arguments to use
 # Leaving off ControlPersist will result in poor performance, so use 
 # paramiko on older platforms rather than removing it
e09ce0a3
 #ssh_args = -o ControlMaster=auto -o ControlPersist=60s
9851066f
 
848a9667
 # 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
 
02ce5af6
 # Enabling pipelining reduces the number of SSH operations required to 
 # execute a module on the remote server. This can result in a significant 
 # performance improvement when enabled, however when using "sudo:" you must 
 # first disable 'requiretty' in /etc/sudoers
 #
 # By default, this option is disabled to preserve compatibility with
 # sudoers configurations that have requiretty (the default on many distros).
 # 
 #pipelining = False
 
637983cf
 # if True, make ansible use scp if the connection type is ssh 
 # (default is sftp)
3eeacaba
 #scp_if_ssh = True
b91896ff
 
959138d0
 [accelerate]
 accelerate_port = 5099
b11e1265
 accelerate_timeout = 30
 accelerate_connect_timeout = 5.0
18d82d1e
 
 # The daemon timeout is measured in minutes. This time is measured
 # from the last activity to the accelerate daemon.
 accelerate_daemon_timeout = 30 
 
 # If set to yes, accelerate_multi_key will allow multiple
 # private keys to be uploaded to it, though each user must
 # have access to the system via SSH to add a new key. The default
 # is "no".
 #accelerate_multi_key = yes