2015-07-05 18:57:41 +02:00
Configuration file
++++++++++++++++++
2013-09-29 21:51:26 +02:00
2013-12-26 20:32:01 +01:00
.. contents :: Topics
2013-09-29 21:51:26 +02:00
.. highlight :: bash
2014-02-14 21:34:58 +01:00
Certain settings in Ansible are adjustable via a configuration file. The stock configuration should be sufficient
for most users, but there may be reasons you would want to change them.
2013-09-29 21:51:26 +02:00
2014-02-19 23:15:17 +01:00
Changes can be made and used in a configuration file which will be processed in the following order::
2013-09-29 21:51:26 +02:00
2014-02-14 21:34:58 +01:00
* ANSIBLE_CONFIG (an environment variable)
* ansible.cfg (in the current directory)
* .ansible.cfg (in the home directory)
2013-09-29 21:51:26 +02:00
* /etc/ansible/ansible.cfg
2014-02-14 21:34:58 +01:00
Prior to 1.5 the order was::
2013-12-12 17:51:09 +01:00
* ansible.cfg (in the current directory)
2014-02-14 21:34:58 +01:00
* ANSIBLE_CONFIG (an environment variable)
* .ansible.cfg (in the home directory)
* /etc/ansible/ansible.cfg
2013-09-29 21:51:26 +02:00
2014-05-03 17:59:50 +02:00
Ansible will process the above list and use the first file found. Settings in files are not merged.
2013-09-29 21:51:26 +02:00
2016-09-16 21:44:22 +02:00
.. note :: Comments
The configuration file is one variant of an INI format. Both the hash
sign ("#") and semicolon (";") are allowed as comment markers when the
comment starts the line. However, if the comment is inline with regular
values, only the semicolon is allowed to introduce the comment. For
instance::
# some basic default values...
inventory = /etc/ansible/hosts ; This points to the file that lists your hosts
2013-10-05 00:14:54 +02:00
.. _getting_the_latest_configuration:
2013-09-29 21:51:26 +02:00
Getting the latest configuration
`` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
If installing ansible from a package manager, the latest ansible.cfg should be present in /etc/ansible, possibly
as a ".rpmnew" file (or other) as appropriate in the case of updates.
If you have installed from pip or from source, however, you may want to create this file in order to override
default settings in Ansible.
2013-11-07 04:18:13 +01:00
You may wish to consult the `ansible.cfg in source control <https://raw.github.com/ansible/ansible/devel/examples/ansible.cfg> `_ for all of the possible latest values.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _environmental_configuration:
2013-09-29 21:51:26 +02:00
Environmental configuration
`` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
Ansible also allows configuration of settings via environment variables. If these environment variables are set, they will
2015-08-28 14:19:13 +02:00
override any setting loaded from the configuration file. These variables are for brevity not defined here, but look in `constants.py <https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py> `_ in the source tree if you want to use these. They are mostly considered to be a legacy system as compared to the config file, but are equally valid.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _config_values_by_section:
2013-09-29 21:51:26 +02:00
Explanation of values by section
`` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
2013-10-05 20:57:45 +02:00
The configuration file is broken up into sections. Most options are in the "general" section but some sections of the file
are specific to certain connection types.
2013-10-05 00:14:54 +02:00
.. _general_defaults:
2013-09-29 21:51:26 +02:00
General defaults
----------------
In the [defaults] section of ansible.cfg, the following settings are tunable:
2016-03-21 22:17:53 +01:00
.. _cfg_action_plugins:
2013-10-05 00:14:54 +02:00
2013-09-29 21:51:26 +02:00
action_plugins
==============
Actions are pieces of code in ansible that enable things like module execution, templating, and so forth.
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2013-11-06 11:55:43 +01:00
action_plugins = ~/.ansible/plugins/action_plugins/:/usr/share/ansible_plugins/action_plugins
2013-09-29 21:51:26 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details.
2013-09-29 21:51:26 +02:00
2016-08-31 17:07:13 +02:00
.. _allow_world_readable_tmpfiles:
allow_world_readable_tmpfiles
=============================
.. versionadded :: 2.1
2016-12-22 18:26:28 +01:00
This makes the temporary files created on the machine to be world readable and will issue a warning instead of failing the task.
2016-08-31 17:07:13 +02:00
It is useful when becoming an unprivileged user::
allow_world_readable_tmpfiles=True
2013-10-05 00:14:54 +02:00
.. _ansible_managed:
2013-09-29 21:51:26 +02:00
ansible_managed
===============
2016-10-22 00:20:59 +02:00
The `` ansible_managed `` string can be inserted into files written by
Ansible's config templating system::
2013-09-29 21:51:26 +02:00
{{ ansible_managed }}
2016-10-22 00:20:59 +02:00
The default value indicates that Ansible is managing a file::
2016-10-19 07:19:12 +02:00
ansible_managed = Ansible managed
2016-10-22 00:20:59 +02:00
This string can be helpful to indicate that a file should not
be directly edited because Ansible may overwrite the contents of the file.
2016-10-19 07:19:12 +02:00
2016-10-22 02:59:05 +02:00
There are several special placeholder values that can be placed in the `` ansible_managed `` string. These are not in the default `` ansible_managed `` string because they can cause Ansible to behave as though the
2016-10-22 08:57:33 +02:00
entire template has changed when only the ansible_managed string has
2016-10-22 00:20:59 +02:00
changed.
These placeholder values, along with the situations which can lead Ansible to
report a template as changed when they are used, are listed below:
2016-10-19 07:19:12 +02:00
* Standard directives that can be used with :func:~time.strftime:.
The time referred to is the modification time of the template file. Many
revision control systems timestamp files according to when they are checked
out, not the last time the file was modified. That means Ansible will think
the file has been modified anytime there is a fresh checkout.
.. If intersphinx isn't turned on, manually make strftime link to
https://docs.python.org/2/library/time.html#time.strftime
* `` {file} `` : expands to the name of the full path to the template file. If
Ansible is run with multiple checkouts of the same configuration repository
(for instance, in each sysadmin's home directory), then the path will differ
2016-10-22 00:20:59 +02:00
in each checkout causing Ansible to behave as though the file has been modified.
2016-10-19 07:19:12 +02:00
* `` {host} `` : expands to the hostname of the machine :program: `ansible` is run
on. If :program: `ansible` is invoked on multiple machines (for instance,
each sysadmin can checkout the configuration repository on their workstation
and run :program: `ansible` there), then the host will vary on each of these
2016-10-22 00:20:59 +02:00
machines. This will cause Ansible to behave as though the file has been modified.
2016-10-19 07:19:12 +02:00
* `` {uid} `` : expands to the owner of the template file. If Ansible is run
on checkouts of the configuration repository made by separate users (for
instance, if multiple system administrators are making checkouts of the
2016-10-22 00:20:59 +02:00
repository with their own accounts) then this will cause Ansible to behave as if
2016-10-19 07:19:12 +02:00
the file has been modified.
2014-02-15 20:13:42 +01:00
2013-10-05 00:14:54 +02:00
.. _ask_pass:
2013-09-29 21:51:26 +02:00
ask_pass
========
This controls whether an Ansible playbook should prompt for a password by default. The default behavior is no::
2016-06-09 11:58:14 +02:00
ask_pass = True
2013-09-29 21:51:26 +02:00
If using SSH keys for authentication, it's probably not needed to change this setting.
2013-10-05 00:14:54 +02:00
.. _ask_sudo_pass:
2013-09-29 21:51:26 +02:00
ask_sudo_pass
=============
Similar to ask_pass, this controls whether an Ansible playbook should prompt for a sudo password by default when
sudoing. The default behavior is also no::
2016-06-09 11:58:14 +02:00
ask_sudo_pass = True
2013-09-29 21:51:26 +02:00
Users on platforms where sudo passwords are enabled should consider changing this setting.
2015-08-10 19:25:00 +02:00
.. _ask_vault_pass:
ask_vault_pass
==============
This controls whether an Ansible playbook should prompt for the vault password by default. The default behavior is no::
2016-06-09 11:58:14 +02:00
ask_vault_pass = True
2015-08-10 19:25:00 +02:00
2014-09-10 15:38:24 +02:00
.. _bin_ansible_callbacks:
bin_ansible_callbacks
=====================
2014-09-10 15:39:31 +02:00
.. versionadded :: 1.8
2014-09-10 15:38:24 +02:00
Controls whether callback plugins are loaded when running /usr/bin/ansible. This may be used to log activity from
the command line, send notifications, and so on. Callback plugins are always loaded for /usr/bin/ansible-playbook
if present and cannot be disabled::
2016-06-09 11:58:14 +02:00
bin_ansible_callbacks = False
2014-09-10 15:38:24 +02:00
2014-09-10 15:39:31 +02:00
Prior to 1.8, callbacks were never loaded for /usr/bin/ansible.
2013-10-05 00:14:54 +02:00
.. _callback_plugins:
2013-09-29 21:51:26 +02:00
callback_plugins
================
2013-11-06 11:55:43 +01:00
Callbacks are pieces of code in ansible that get called on specific events, permitting to trigger notifications.
2013-09-29 21:51:26 +02:00
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2016-06-23 17:07:10 +02:00
callback_plugins = ~/.ansible/plugins/callback:/usr/share/ansible/plugins/callback
2013-09-29 21:51:26 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2013-09-29 21:51:26 +02:00
2015-07-17 19:53:13 +02:00
.. _callback_whitelist:
callback_whitelist
==================
.. versionadded :: 2.0
2015-10-30 14:58:26 +01:00
Now ansible ships with all included callback plugins ready to use but they are disabled by default.
This setting lets you enable a list of additional callbacks. This cannot change or override the
default stdout callback, use :ref: `stdout_callback` for that::
2015-07-17 19:53:13 +02:00
2015-10-30 14:58:26 +01:00
callback_whitelist = timer,mail
2015-07-17 19:53:13 +02:00
2014-08-22 21:33:57 +02:00
.. _command_warnings:
command_warnings
================
.. versionadded :: 1.8
2016-03-26 00:35:04 +01:00
By default since Ansible 1.8, Ansible will issue a warning when the shell or
command module is used and the command appears to be similar to an existing
Ansible module. For example, this can include reminders to use the 'git' module
instead of shell commands to execute 'git'. Using modules when possible over
arbitrary shell commands can lead to more reliable and consistent playbook runs,
and also easier to maintain playbooks::
2014-08-22 21:33:57 +02:00
2014-09-28 14:30:35 +02:00
command_warnings = False
2014-08-22 21:33:57 +02:00
These warnings can be silenced by adjusting the following
setting or adding warn=yes or warn=no to the end of the command line
parameter string, like so::
- name: usage of git that could be replaced with the git module
shell: git update foo warn=yes
2013-10-05 00:14:54 +02:00
.. _connection_plugins:
2013-09-29 21:51:26 +02:00
connection_plugins
==================
2013-11-06 11:55:43 +01:00
Connections plugin permit to extend the channel used by ansible to transport commands and files.
2013-09-29 21:51:26 +02:00
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2013-11-06 11:55:43 +01:00
connection_plugins = ~/.ansible/plugins/connection_plugins/:/usr/share/ansible_plugins/connection_plugins
2013-09-29 21:51:26 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2013-09-29 21:51:26 +02:00
2013-10-12 16:15:00 +02:00
.. _deprecation_warnings:
deprecation_warnings
====================
.. versionadded :: 1.3
Allows disabling of deprecating warnings in ansible-playbook output::
2014-09-10 15:38:24 +02:00
deprecation_warnings = True
2013-10-12 16:15:00 +02:00
Deprecation warnings indicate usage of legacy features that are slated for removal in a future release of Ansible.
2016-02-26 22:43:22 +01:00
.. _display_args_to_stdout:
2016-02-18 13:20:35 +01:00
display_args_to_stdout
======================
.. versionadded :: 2.1.0
By default, ansible-playbook will print a header for each task that is run to
stdout. These headers will contain the `` name: `` field from the task if you
specified one. If you didn't then ansible-playbook uses the task's action to
help you tell which task is presently running. Sometimes you run many of the
same action and so you want more information about the task to differentiate
it from others of the same action. If you set this variable to `` True `` in
the config then ansible-playbook will also include the task's arguments in the
header.
This setting defaults to `` False `` because there is a chance that you have
sensitive values in your parameters and do not want those to be printed to
stdout::
2016-06-09 11:58:14 +02:00
display_args_to_stdout = False
2016-02-18 13:20:35 +01:00
If you set this to `` True `` you should be sure that you have secured your
environment's stdout (no one can shoulder surf your screen and you aren't
saving stdout to an insecure file) or made sure that all of your playbooks
explicitly added the `` no_log: True `` parameter to tasks which have sensistive
values See :ref: `keep_secret_data` for more information.
2013-10-05 00:14:54 +02:00
.. _display_skipped_hosts:
2013-10-01 04:02:09 +02:00
display_skipped_hosts
=====================
If set to `False` , ansible will not display any status for a task that is skipped. The default behavior is to display skipped tasks::
2016-06-09 11:58:14 +02:00
display_skipped_hosts = True
2013-10-01 04:02:09 +02:00
Note that Ansible will always show the task header for any task, regardless of whether or not the task is skipped.
2013-10-05 00:14:54 +02:00
.. _error_on_undefined_vars:
2013-09-29 21:51:26 +02:00
error_on_undefined_vars
=======================
On by default since Ansible 1.3, this causes ansible to fail steps that reference variable names that are likely
typoed::
2016-06-09 11:58:14 +02:00
error_on_undefined_vars = True
2013-09-29 21:51:26 +02:00
If set to False, any '{{ template_expression }}' that contains undefined variables will be rendered in a template
or ansible action line exactly as written.
2013-10-05 00:14:54 +02:00
.. _executable:
2013-09-29 21:51:26 +02:00
executable
==========
2015-07-20 16:22:45 +02:00
This indicates the command to use to spawn a shell under a sudo environment. Users may need to change this to /bin/bash in rare instances when sudo is constrained, but in most cases it may be left as is::
2013-09-29 21:51:26 +02:00
2014-09-10 15:38:24 +02:00
executable = /bin/bash
2013-09-29 21:51:26 +02:00
2016-04-26 14:59:26 +02:00
Starting in version 2.1 this can be overridden by the inventory var `` ansible_shell_executable `` .
2016-03-12 02:38:38 +01:00
2013-10-05 00:14:54 +02:00
.. _filter_plugins:
filter_plugins
==============
2013-11-06 11:55:43 +01:00
Filters are specific functions that can be used to extend the template system.
2013-10-05 00:14:54 +02:00
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2013-11-06 11:55:43 +01:00
filter_plugins = ~/.ansible/plugins/filter_plugins/:/usr/share/ansible_plugins/filter_plugins
2013-10-05 00:14:54 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2013-10-05 00:14:54 +02:00
2014-09-16 17:31:50 +02:00
.. _force_color:
force_color
===========
This options forces color mode even when running without a TTY::
force_color = 1
2015-04-04 22:37:14 +02:00
.. _force_handlers:
force_handlers
==============
.. versionadded :: 1.9.1
This option causes notified handlers to run on a host even if a failure occurs on that host::
2016-10-22 00:20:59 +02:00
force_handlers = True
2015-04-04 22:37:14 +02:00
The default is False, meaning that handlers will not run if a failure has occurred on a host.
2015-05-05 22:50:46 +02:00
This can also be set per play or on the command line. See :ref: `handlers_and_failure` for more details.
2015-04-04 22:37:14 +02:00
2013-10-05 00:14:54 +02:00
.. _forks:
2013-09-29 21:51:26 +02:00
forks
=====
This is the default number of parallel processes to spawn when communicating with remote hosts. Since Ansible 1.3,
2016-10-13 03:49:34 +02:00
the fork number is automatically limited to the number of possible hosts at runtime, so this is really a limit of how much
2013-09-29 21:51:26 +02:00
network and CPU load you think you can handle. Many users may set this to 50, some set it to 500 or more. If you
have a large number of hosts, higher values will make actions across all of those hosts complete faster. The default
is very very conservative::
2016-06-09 11:58:14 +02:00
forks = 5
2013-09-29 21:51:26 +02:00
2017-01-12 16:49:04 +01:00
.. _fact_path:
fact_path
=========
2017-01-12 16:53:24 +01:00
This option allows you to globally configure a custom path for :ref: `_local_facts` :: for the implied `setup` task when using implied fact gathering.
2017-01-12 16:49:04 +01:00
fact_path = /home/centos/ansible_facts.d
The default is to use the default from the `setup module <https://docs.ansible.com/ansible/setup_module.html> `_ : `` /etc/ansible/facts.d ``
2017-01-12 16:53:24 +01:00
This ONLY affects fact gathering triggered by a play when `gather_facts: True` .
2017-01-12 16:49:04 +01:00
2014-03-19 23:02:49 +01:00
.. _gathering:
gathering
=========
New in 1.6, the 'gathering' setting controls the default policy of facts gathering (variables discovered about remote systems).
2015-07-19 23:33:26 +02:00
The value 'implicit' is the default, which means that the fact cache will be ignored and facts will be gathered per play unless 'gather_facts: False' is set.
2015-07-17 19:53:13 +02:00
The value 'explicit' is the inverse, facts will not be gathered unless directly requested in the play.
The value 'smart' means each new host that has no facts discovered will be scanned, but if the same host is addressed in multiple plays it will not be contacted again in the playbook run.
2015-10-30 14:58:26 +01:00
This option can be useful for those wishing to save fact gathering time. Both 'smart' and 'explicit' will use the fact cache::
gathering = smart
2013-09-29 21:51:26 +02:00
2016-03-12 10:22:49 +01:00
.. versionadded :: 2.1
2016-10-08 02:12:50 +02:00
You can specify a subset of gathered facts, via the play's gather_facts directive, using the following option::
2016-03-12 10:22:49 +01:00
gather_subset = all
2016-03-14 22:50:27 +01:00
:all: gather all subsets (the default)
:network: gather network facts
:hardware: gather hardware facts (longest facts to retrieve)
:virtual: gather facts about virtual machines hosted on the machine
:ohai: gather facts from ohai
:facter: gather facts from facter
2016-03-12 10:22:49 +01:00
2016-03-14 22:50:27 +01:00
You can combine them using a comma separated list (ex: network,virtual,facter)
2016-03-12 10:22:49 +01:00
2016-03-14 22:50:27 +01:00
You can also disable specific subsets by prepending with a `!` like this::
2016-03-12 10:22:49 +01:00
2016-03-14 22:50:27 +01:00
# Don't gather hardware facts, facts from chef's ohai or puppet's facter
gather_subset = !hardware,!ohai,!facter
A set of basic facts are always collected no matter which additional subsets
are selected. If you want to collect the minimal amount of facts, use
`!all` ::
gather_subset = !all
2016-03-12 10:22:49 +01:00
2013-11-06 18:01:37 +01:00
hash_behaviour
==============
2013-09-29 21:51:26 +02:00
2013-10-03 03:49:30 +02:00
Ansible by default will override variables in specific precedence orders, as described in :doc: `playbooks_variables` . When a variable
2013-12-12 17:51:09 +01:00
of higher precedence wins, it will replace the other value.
2013-09-29 21:51:26 +02:00
2014-05-03 17:59:50 +02:00
Some users prefer that variables that are hashes (aka 'dictionaries' in Python terms) are merged. This setting is called 'merge'. This is not the default behavior and it does not affect variables whose values are scalars (integers, strings) or
2013-09-29 21:51:26 +02:00
arrays. We generally recommend not using this setting unless you think you have an absolute need for it, and playbooks in the
official examples repos do not use this setting::
2016-06-09 11:58:14 +02:00
hash_behaviour = replace
2013-09-29 21:51:26 +02:00
The valid values are either 'replace' (the default) or 'merge'.
2016-03-12 10:22:49 +01:00
.. versionadded :: 2.0
2015-08-25 07:10:58 +02:00
If you want to merge hashes without changing the global settings, use
the `combine` filter described in :doc: `playbooks_filters` .
2013-10-05 00:14:54 +02:00
.. _hostfile:
2013-09-29 21:51:26 +02:00
hostfile
========
2015-06-04 02:55:55 +02:00
This is a deprecated setting since 1.9, please look at :ref: `inventory_file` for the new setting.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _host_key_checking:
2013-09-29 21:51:26 +02:00
host_key_checking
=================
2013-10-03 04:09:02 +02:00
As described in :doc: `intro_getting_started` , host key checking is on by default in Ansible 1.3 and later. If you understand the
2013-09-29 21:51:26 +02:00
implications and wish to disable it, you may do so here by setting the value to False::
2016-06-09 11:58:14 +02:00
host_key_checking = True
2013-09-29 21:51:26 +02:00
2016-10-06 21:30:20 +02:00
.. _internal_poll_interval:
internal_poll_interval
======================
.. versionadded :: 2.2
This sets the interval (in seconds) of Ansible internal processes polling each other.
Lower values improve performance with large playbooks at the expense of extra CPU load.
Higher values are more suitable for Ansible usage in automation scenarios, when UI responsiveness is not required but CPU usage might be a concern.
Default corresponds to the value hardcoded in Ansible ≤ 2.1::
internal_poll_interval=0.001
2015-06-04 02:55:55 +02:00
.. _inventory_file:
2015-02-01 12:12:40 +01:00
inventory
=========
This is the default location of the inventory file, script, or directory that Ansible will use to determine what hosts it has available
to talk to::
inventory = /etc/ansible/hosts
It used to be called hostfile in Ansible before 1.9
2013-10-05 00:14:54 +02:00
.. _jinja2_extensions:
2013-09-29 21:51:26 +02:00
jinja2_extensions
=================
This is a developer-specific feature that allows enabling additional Jinja2 extensions::
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
If you do not know what these do, you probably don't need to change this setting :)
2013-10-05 00:14:54 +02:00
.. _library:
2013-09-29 21:51:26 +02:00
library
=======
This is the default location Ansible looks to find modules::
library = /usr/share/ansible
2013-10-06 03:19:19 +02:00
Ansible knows how to look in multiple locations if you feed it a colon separated path, and it also will look for modules in the
2013-09-29 21:51:26 +02:00
"./library" directory alongside a playbook.
2016-04-06 08:48:37 +02:00
.. _local_tmp:
local_tmp
=========
2016-07-26 19:57:06 +02:00
.. versionadded :: 2.1
2016-04-06 08:48:37 +02:00
When Ansible gets ready to send a module to a remote machine it usually has to
add a few things to the module: Some boilerplate code, the module's
parameters, and a few constants from the config file. This combination of
things gets stored in a temporary file until ansible exits and cleans up after
itself. The default location is a subdirectory of the user's home directory.
If you'd like to change that, you can do so by altering this setting::
local_tmp = $HOME/.ansible/tmp
Ansible will then choose a random directory name inside this location.
2013-10-05 00:14:54 +02:00
.. _log_path:
2013-09-29 21:51:26 +02:00
log_path
========
If present and configured in ansible.cfg, Ansible will log information about executions at the designated location. Be sure
2013-10-22 01:05:40 +02:00
the user running Ansible has permissions on the logfile::
2013-09-29 21:51:26 +02:00
log_path=/var/log/ansible.log
2013-10-08 14:26:40 +02:00
This behavior is not on by default. Note that ansible will, without this setting, record module arguments called to the
syslog of managed machines. Password arguments are excluded.
2014-01-28 17:04:34 +01:00
For Enterprise users seeking more detailed logging history, you may be interested in :doc: `tower` .
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _lookup_plugins:
2013-09-29 21:51:26 +02:00
lookup_plugins
==============
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2013-11-06 11:55:43 +01:00
lookup_plugins = ~/.ansible/plugins/lookup_plugins/:/usr/share/ansible_plugins/lookup_plugins
2013-09-29 21:51:26 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2013-09-29 21:51:26 +02:00
2016-09-29 23:14:02 +02:00
.. _merge_multiple_cli_tags:
merge_multiple_cli_tags
=======================
.. versionadded :: 2.3
This allows changing how multiple --tags and --skip-tags arguments are handled
on the command line. In Ansible up to and including 2.3, specifying --tags
more than once will only take the last value of --tags. Setting this config
value to True will mean that all of the --tags options will be merged
together. The same holds true for --skip-tags.
.. note :: The default value for this in 2.3 is False. In 2.4, the
default value will be True. After 2.4, the option is going away.
Multiple --tags and multiple --skip-tags will always be merged together.
2016-04-06 18:19:22 +02:00
.. _module_set_locale:
module_set_locale
=================
This boolean value controls whether or not Ansible will prepend locale-specific environment variables (as specified
2016-06-15 20:21:04 +02:00
via the :ref: `module_lang` configuration option). If enabled, it results in the LANG, LC_MESSAGES, and LC_ALL
being set when the module is executed on the given remote system. By default this is disabled.
2016-04-06 18:19:22 +02:00
.. note ::
2016-06-15 20:21:04 +02:00
The module_set_locale option was added in Ansible-2.1 and defaulted to
True. The default was changed to False in Ansible-2.2
2016-04-06 18:19:22 +02:00
2014-03-10 23:09:06 +01:00
.. _module_lang:
2016-04-06 18:19:22 +02:00
2014-03-10 23:09:06 +01:00
module_lang
===========
2016-07-01 16:47:52 +02:00
This is to set the default language to communicate between the module and the system.
By default, the value is value `LANG` on the controller or, if unset, `en_US.UTF-8` (it used to be `C` in previous versions)::
2015-10-30 14:58:26 +01:00
module_lang = en_US.UTF-8
2014-03-10 23:09:06 +01:00
2013-10-05 00:14:54 +02:00
.. _module_name:
2013-09-29 21:51:26 +02:00
module_name
===========
This is the default module name (-m) value for /usr/bin/ansible. The default is the 'command' module.
Remember the command module doesn't support shell variables, pipes, or quotes, so you might wish to change
it to 'shell'::
2014-09-10 15:38:24 +02:00
module_name = command
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _nocolor:
2013-09-29 21:51:26 +02:00
nocolor
=======
By default ansible will try to colorize output to give a better indication of failure and status information.
2013-12-12 17:51:09 +01:00
If you dislike this behavior you can turn it off by setting 'nocolor' to 1::
2013-09-29 21:51:26 +02:00
2016-06-09 11:58:14 +02:00
nocolor = 0
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _nocows:
2013-09-29 21:51:26 +02:00
nocows
======
By default ansible will take advantage of cowsay if installed to make /usr/bin/ansible-playbook runs more exciting.
Why? We believe systems management should be a happy experience. If you do not like the cows, you can disable them
by setting 'nocows' to 1::
2016-06-09 11:58:14 +02:00
nocows = 0
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _pattern:
pattern
=======
This is the default group of hosts to talk to in a playbook if no "hosts:" stanza is supplied. The default is to talk
to all hosts. You may wish to change this to protect yourself from surprises::
2016-06-09 11:58:14 +02:00
hosts = *
2013-10-05 00:14:54 +02:00
Note that /usr/bin/ansible always requires a host pattern and does not use this setting, only /usr/bin/ansible-playbook.
.. _poll_interval:
poll_interval
=============
For asynchronous tasks in Ansible (covered in :doc: `playbooks_async` ), this is how often to check back on the status of those
tasks when an explicit poll interval is not supplied. The default is a reasonably moderate 15 seconds which is a tradeoff
between checking in frequently and providing a quick turnaround when something may have completed::
2016-06-09 11:58:14 +02:00
poll_interval = 15
2013-10-05 00:14:54 +02:00
.. _private_key_file:
2013-09-29 21:51:26 +02:00
private_key_file
================
If you are using a pem file to authenticate with machines rather than SSH agent or passwords, you can set the default
2015-04-27 17:16:56 +02:00
value here to avoid re-specifying `` --private-key `` with every invocation::
2013-09-29 21:51:26 +02:00
2014-09-10 15:38:24 +02:00
private_key_file=/path/to/file.pem
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _remote_port:
2013-09-29 21:51:26 +02:00
remote_port
===========
2013-10-06 03:19:19 +02:00
This sets the default SSH port on all of your systems, for systems that didn't specify an alternative value in inventory.
2013-09-29 21:51:26 +02:00
The default is the standard 22::
2014-09-10 15:38:24 +02:00
remote_port = 22
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _remote_tmp:
2013-09-29 21:51:26 +02:00
remote_tmp
==========
Ansible works by transferring modules to your remote machines, running them, and then cleaning up after itself. In some
cases, you may not wish to use the default location and would like to change the path. You can do so by altering this
setting::
2013-12-12 17:51:09 +01:00
2013-11-18 00:37:17 +01:00
remote_tmp = $HOME/.ansible/tmp
2013-09-29 21:51:26 +02:00
The default is to use a subdirectory of the user's home directory. Ansible will then choose a random directory name
inside this location.
2013-10-05 00:14:54 +02:00
.. _remote_user:
2013-09-29 21:51:26 +02:00
remote_user
===========
This is the default username ansible will connect as for /usr/bin/ansible-playbook. Note that /usr/bin/ansible will
2014-06-04 20:26:16 +02:00
always default to the current user if this is not defined::
2013-09-29 21:51:26 +02:00
remote_user = root
2015-09-17 12:59:32 +02:00
.. _retry_files_enabled:
retry_files_enabled
===================
This controls whether a failed Ansible playbook should create a .retry file. The default setting is True::
retry_files_enabled = False
.. _retry_files_save_path:
retry_files_save_path
=====================
The retry files save path is where Ansible will save .retry files when a playbook fails and retry_files_enabled is True (the default).
2016-04-04 22:30:46 +02:00
The default location is adjacent to the play (~/ in versions older than 2.0) and can be changed to any writeable path::
2015-09-17 12:59:32 +02:00
2016-04-04 22:30:46 +02:00
retry_files_save_path = ~/.ansible/retry-files
2015-09-17 12:59:32 +02:00
The directory will be created if it does not already exist.
2015-11-04 02:29:02 +01:00
.. _cfg_roles_path:
2015-09-30 21:41:51 +02:00
roles_path
==========
2016-03-12 10:22:49 +01:00
.. versionadded :: 1.4
2015-09-30 21:41:51 +02:00
The roles path indicate additional directories beyond the 'roles/' subdirectory of a playbook project to search to find Ansible
roles. For instance, if there was a source control repository of common roles and a different repository of playbooks, you might
choose to establish a convention to checkout roles in /opt/mysite/roles like so::
roles_path = /opt/mysite/roles
Additional paths can be provided separated by colon characters, in the same way as other pathstrings::
roles_path = /opt/mysite/roles:/opt/othersite/roles
Roles will be first searched for in the playbook directory. Should a role not be found, it will indicate all the possible paths
that were searched.
2016-03-23 10:38:12 +01:00
.. _cfg_squash_actions:
squash_actions
==============
.. versionadded :: 2.0
Ansible can optimise actions that call modules that support list parameters when using with\_ looping.
Instead of calling the module once for each item, the module is called once with the full list.
The default value for this setting is only for certain package managers, but it can be used for any module::
2016-10-01 00:07:09 +02:00
squash_actions = apk,apt,dnf,homebrew,package,pacman,pkgng,yum,zypper
2016-03-23 10:38:12 +01:00
Currently, this is only supported for modules that have a name parameter, and only when the item is the
only thing being passed to the parameter.
2016-09-29 23:14:02 +02:00
.. _stdout_callback:
stdout_callback
===============
.. versionadded :: 2.0
This setting allows you to override the default stdout callback for ansible-playbook::
stdout_callback = skippy
2016-03-16 19:03:00 +01:00
.. _cfg_strategy_plugins:
2016-03-05 12:15:04 +01:00
strategy_plugins
==================
Strategy plugin allow users to change the way in which Ansible runs tasks on targeted hosts.
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
strategy_plugins = ~/.ansible/plugins/strategy_plugins/:/usr/share/ansible_plugins/strategy_plugins
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2016-03-05 12:15:04 +01:00
2016-11-15 21:36:53 +01:00
.. _cfg_strategy:
strategy
========
Strategy allow to change the default strategy used by Ansible::
strategy = free
2013-10-05 00:14:54 +02:00
.. _sudo_exe:
2013-09-29 21:51:26 +02:00
sudo_exe
========
If using an alternative sudo implementation on remote machines, the path to sudo can be replaced here provided
the sudo implementation is matching CLI flags with the standard sudo::
2016-06-09 11:58:14 +02:00
sudo_exe = sudo
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _sudo_flags:
2013-09-29 21:51:26 +02:00
sudo_flags
==========
2016-01-16 21:28:41 +01:00
Additional flags to pass to sudo when engaging sudo support. The default is '-H -S -n' which sets the HOME environment
variable, prompts for passwords via STDIN, and avoids prompting the user for input of any kind. Note that '-n' will conflict
with using password-less sudo auth, such as pam_ssh_agent_auth. In some situations you may wish to add or remove flags, but
in general most users will not need to change this setting:::
2013-09-29 21:51:26 +02:00
2016-01-16 20:37:04 +01:00
sudo_flags=-H -S -n
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _sudo_user:
2013-09-29 21:51:26 +02:00
sudo_user
=========
2013-10-14 04:49:57 +02:00
This is the default user to sudo to if `` --sudo-user `` is not specified or 'sudo_user' is not specified in an Ansible
2013-09-29 21:51:26 +02:00
playbook. The default is the most logical: 'root'::
2016-06-09 11:58:14 +02:00
sudo_user = root
2013-09-29 21:51:26 +02:00
2014-04-30 21:44:10 +02:00
.. _system_warnings:
system_warnings
===============
.. versionadded :: 1.6
Allows disabling of warnings related to potential issues on the system running ansible itself (not on the managed hosts)::
system_warnings = True
These may include warnings about 3rd party packages or other conditions that should be resolved if possible.
2013-10-05 00:14:54 +02:00
.. _timeout:
2013-09-29 21:51:26 +02:00
timeout
=======
This is the default SSH timeout to use on connection attempts::
timeout = 10
2013-10-05 00:14:54 +02:00
.. _transport:
2013-09-29 21:51:26 +02:00
transport
=========
2013-10-14 04:49:57 +02:00
This is the default transport to use if "-c <transport_name>" is not specified to /usr/bin/ansible or /usr/bin/ansible-playbook.
2013-09-29 21:51:26 +02:00
The default is 'smart', which will use 'ssh' (OpenSSH based) if the local operating system is new enough to support ControlPersist
technology, and then will otherwise use 'paramiko'. Other transport options include 'local', 'chroot', 'jail', and so on.
Users should usually leave this setting as 'smart' and let their playbooks choose an alternate setting when needed with the
2015-10-30 14:58:26 +01:00
'connection:' play parameter::
transport = paramiko
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _vars_plugins:
2013-09-29 21:51:26 +02:00
vars_plugins
============
This is a developer-centric feature that allows low-level extensions around Ansible to be loaded from
different locations::
2013-11-06 11:55:43 +01:00
vars_plugins = ~/.ansible/plugins/vars_plugins/:/usr/share/ansible_plugins/vars_plugins
2013-09-29 21:51:26 +02:00
2017-01-07 20:38:52 +01:00
Most users will not need to use this feature. See :doc: `dev_guide/developing_plugins` for more details
2013-09-29 21:51:26 +02:00
2014-09-16 17:22:32 +02:00
.. _vault_password_file:
vault_password_file
===================
.. versionadded :: 1.7
Configures the path to the Vault password file as an alternative to specifying `` --vault-password-file `` on the command line::
vault_password_file = /path/to/vault_password_file
As of 1.7 this file can also be a script. If you are using a script instead of a flat file, ensure that it is marked as executable, and that the password is printed to standard output. If your script needs to prompt for data, prompts can be sent to standard error.
2015-04-30 04:22:24 +02:00
.. _privilege_escalation:
Privilege Escalation Settings
-----------------------------
Ansible can use existing privilege escalation systems to allow a user to execute tasks as another. As of 1.9 ‘ become’ supersedes the old sudo/su, while still being backwards compatible. Settings live under the [privilege_escalation] header.
.. _become:
become
======
The equivalent of adding sudo: or su: to a play or task, set to true/yes to activate privilege escalation. The default behavior is no::
2016-06-09 11:58:14 +02:00
become = True
2015-04-30 04:22:24 +02:00
.. _become_method:
become_method
=============
2016-09-01 22:54:31 +02:00
Set the privilege escalation method. The default is `` sudo `` , other options are `` su `` , `` pbrun `` , `` pfexec `` , `` doas `` , `` ksu `` ::
2015-04-30 04:22:24 +02:00
2016-06-09 11:58:14 +02:00
become_method = su
2015-04-30 04:22:24 +02:00
.. _become_user:
become_user
=============
The equivalent to ansible_sudo_user or ansible_su_user, allows to set the user you become through privilege escalation. The default is 'root'::
2016-06-09 11:58:14 +02:00
become_user = root
2015-04-30 04:22:24 +02:00
.. _become_ask_pass:
become_ask_pass
===============
Ask for privilege escalation password, the default is False::
2016-06-09 11:58:14 +02:00
become_ask_pass = True
2015-04-30 04:22:24 +02:00
2015-09-17 14:59:22 +02:00
.. _become_allow_same_user:
become_allow_same_user
======================
Most of the time, using *sudo* to run a command as the same user who is running
*sudo* itself is unnecessary overhead, so Ansible does not allow it. However,
depending on the *sudo* configuration, it may be necessary to run a command as
the same user through *sudo* , such as to switch SELinux contexts. For this
reason, you can set `` become_allow_same_user `` to `` True `` and disable this
optimization.
2013-10-05 00:14:54 +02:00
.. _paramiko_settings:
2013-09-29 21:51:26 +02:00
Paramiko Specific Settings
--------------------------
Paramiko is the default SSH connection implementation on Enterprise Linux 6 or earlier, and is not used by default on other
2016-06-02 16:06:56 +02:00
platforms. Settings live under the [paramiko_connection] header.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _record_host_keys:
2013-09-29 21:51:26 +02:00
record_host_keys
================
The default setting of yes will record newly discovered and approved (if host key checking is enabled) hosts in the user's hostfile.
This setting may be inefficient for large numbers of hosts, and in those situations, using the ssh transport is definitely recommended
instead. Setting it to False will improve performance and is recommended when host key checking is disabled::
2016-06-09 11:58:14 +02:00
record_host_keys = True
2013-09-29 21:51:26 +02:00
2016-02-26 22:43:22 +01:00
.. _paramiko_proxy_command:
2015-12-23 21:57:24 +01:00
proxy_command
=============
.. versionadded :: 2.1
Use an OpenSSH like ProxyCommand for proxying all Paramiko SSH connections through a bastion or jump host. Requires a minimum of Paramiko version 1.9.0. On Enterprise Linux 6 this is provided by `` python-paramiko1.10 `` in the EPEL repository::
proxy_command = ssh -W "%h:%p" bastion
2013-10-05 00:14:54 +02:00
.. _openssh_settings:
2013-09-29 21:51:26 +02:00
OpenSSH Specific Settings
-------------------------
2013-10-24 20:24:24 +02:00
Under the [ssh_connection] header, the following settings are tunable for SSH connections. OpenSSH is the default connection type for Ansible
2013-09-29 21:51:26 +02:00
on OSes that are new enough to support ControlPersist. (This means basically all operating systems except Enterprise Linux 6 or earlier).
2013-10-05 00:14:54 +02:00
.. _ssh_args:
2013-09-29 21:51:26 +02:00
ssh_args
========
If set, this will pass a specific set of options to Ansible rather than Ansible's usual defaults::
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
2013-12-12 17:51:09 +01:00
In particular, users may wish to raise the ControlPersist time to encourage performance. A value of 30 minutes may
2015-06-23 22:00:32 +02:00
be appropriate. If `ssh_args` is set, the default `` control_path `` setting is not used.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _control_path:
2013-09-29 21:51:26 +02:00
control_path
============
This is the location to save ControlPath sockets. This defaults to::
2014-09-10 15:38:24 +02:00
control_path=%(directory)s/ansible-ssh-%%h-%%p-%%r
2013-09-29 21:51:26 +02:00
2013-12-12 17:51:09 +01:00
On some systems with very long hostnames or very long path names (caused by long user names or
2013-09-29 21:51:26 +02:00
deeply nested home directories) this can exceed the character limit on
2013-12-12 17:51:09 +01:00
file socket names (108 characters for most platforms). In that case, you
2013-09-29 21:51:26 +02:00
may wish to shorten the string to something like the below::
2014-09-10 15:38:24 +02:00
control_path = %(directory)s/%%h-%%r
2013-09-29 21:51:26 +02:00
Ansible 1.4 and later will instruct users to run with "-vvvv" in situations where it hits this problem
and if so it is easy to tell there is too long of a Control Path filename. This may be frequently
2015-06-23 22:00:32 +02:00
encountered on EC2. This setting is ignored if `` ssh_args `` is set.
2013-09-29 21:51:26 +02:00
2016-11-03 23:11:19 +01:00
.. _control_path_dir:
control_path_dir
================
.. versionadded :: 2.3
This is the base directory of the ControlPath sockets.
It is the `` %(directory)s `` part of the `` control_path `` option.
This defaults to::
2016-12-22 18:26:28 +01:00
2016-11-03 23:11:19 +01:00
control_path_dir=$HOME/.ansible/cp
2013-10-05 00:14:54 +02:00
.. _scp_if_ssh:
2013-09-29 21:51:26 +02:00
scp_if_ssh
==========
Occasionally users may be managing a remote system that doesn't have SFTP enabled. If set to True, we can
cause scp to be used to transfer remote files instead::
2016-06-09 11:58:14 +02:00
scp_if_ssh = False
2013-09-29 21:51:26 +02:00
There's really no reason to change this unless problems are encountered, and then there's also no real drawback
to managing the switch. Most environments support SFTP by default and this doesn't usually need to be changed.
2014-02-15 20:35:26 +01:00
.. _pipelining:
pipelining
==========
Enabling pipelining reduces the number of SSH operations required to
2016-04-26 14:59:26 +02:00
execute a module on the remote server, by executing many ansible modules without actual file transfer.
2015-12-03 16:59:23 +01:00
This can result in a very significant performance improvement when enabled, however when using "sudo:" operations you must
first disable 'requiretty' in /etc/sudoers on all managed hosts.
By default, this option is disabled to preserve compatibility with
sudoers configurations that have requiretty (the default on many distros), but is highly
recommended if you can enable it, eliminating the need for :doc: `playbooks_acceleration` ::
2016-06-09 11:58:14 +02:00
pipelining = False
2014-02-15 20:35:26 +01:00
2016-10-06 00:18:40 +02:00
.. _ssh_executable:
ssh_executable
==============
.. versionadded :: 2.2
This is the location of the ssh binary. It defaults to `` ssh `` which will use the first ssh binary available in `` $PATH `` . This config can also be overridden with `` ansible_ssh_executable `` inventory variable::
ssh_executable="/usr/local/bin/ssh"
This option is usually not required, it might be useful when access to system ssh is restricted, or when using ssh wrappers to connect to remote hosts.
2013-10-05 00:14:54 +02:00
.. _accelerate_settings:
2014-11-02 00:31:04 +01:00
Accelerated Mode Settings
-------------------------
2013-09-29 21:51:26 +02:00
2016-04-26 14:59:26 +02:00
Under the [accelerate] header, the following settings are tunable for :doc: `playbooks_acceleration` . Acceleration is
2014-02-27 23:44:21 +01:00
a useful performance feature to use if you cannot enable :ref: `pipelining` in your environment, but is probably
2014-02-15 20:35:26 +01:00
not needed if you can.
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _accelerate_port:
2013-09-29 21:51:26 +02:00
accelerate_port
===============
2013-10-02 15:51:04 +02:00
.. versionadded :: 1.3
2014-11-02 00:31:04 +01:00
This is the port to use for accelerated mode::
2013-12-12 17:51:09 +01:00
2014-09-10 15:38:24 +02:00
accelerate_port = 5099
2013-09-29 21:51:26 +02:00
2013-10-05 00:14:54 +02:00
.. _accelerate_timeout:
2013-10-02 15:36:38 +02:00
accelerate_timeout
==================
2013-10-02 15:51:04 +02:00
.. versionadded :: 1.4
2013-10-02 15:36:38 +02:00
This setting controls the timeout for receiving data from a client. If no data is received during this time, the socket connection will be closed. A keepalive packet is sent back to the controller every 15 seconds, so this timeout should not be set lower than 15 (by default, the timeout is 30 seconds)::
accelerate_timeout = 30
2013-10-05 00:14:54 +02:00
.. _accelerate_connect_timeout:
2013-10-02 15:36:38 +02:00
accelerate_connect_timeout
==========================
2013-10-02 15:51:04 +02:00
.. versionadded :: 1.4
2013-10-02 15:36:38 +02:00
This setting controls the timeout for the socket connect call, and should be kept relatively low. The connection to the `accelerate_port` will be attempted 3 times before Ansible will fall back to ssh or paramiko (depending on your default connection setting) to try and start the accelerate daemon remotely. The default setting is 1.0 seconds::
accelerate_connect_timeout = 1.0
2013-10-06 03:19:19 +02:00
Note, this value can be set to less than one second, however it is probably not a good idea to do so unless you're on a very fast and reliable LAN. If you're connecting to systems over the internet, it may be necessary to increase this timeout.
2013-09-29 21:51:26 +02:00
2014-03-26 01:29:55 +01:00
.. _accelerate_daemon_timeout:
accelerate_daemon_timeout
=========================
.. versionadded :: 1.6
This setting controls the timeout for the accelerated daemon, as measured in minutes. The default daemon timeout is 30 minutes::
accelerate_daemon_timeout = 30
Note, prior to 1.6, the timeout was hard-coded from the time of the daemon's launch. For version 1.6+, the timeout is now based on the last activity to the daemon and is configurable via this option.
.. _accelerate_multi_key:
accelerate_multi_key
====================
.. versionadded :: 1.6
If enabled, this setting allows multiple private keys to be uploaded to the daemon. Any clients connecting to the daemon must also enable this option::
accelerate_multi_key = yes
New clients first connect to the target node over SSH to upload the key, which is done via a local socket file, so they must have the same access as the user that launched the daemon originally.
2013-10-03 03:43:47 +02:00
2015-07-17 19:53:13 +02:00
.. _selinux_settings:
Selinux Specific Settings
-------------------------
These are settings that control SELinux interactions.
2015-07-20 18:29:18 +02:00
special_context_filesystems
===========================
2015-07-17 19:53:13 +02:00
.. versionadded :: 1.9
This is a list of file systems that require special treatment when dealing with security context.
2015-07-19 23:27:13 +02:00
The normal behaviour is for operations to copy the existing context or use the user default, this changes it to use a file system dependent context.
2015-10-30 14:58:26 +01:00
The default list is: nfs,vboxsf,fuse,ramfs::
special_context_filesystems = nfs,vboxsf,fuse,ramfs,myspecialfs
2015-12-10 05:25:23 +01:00
2016-03-11 00:34:31 +01:00
libvirt_lxc_noseclabel
======================
.. versionadded :: 2.1
This setting causes libvirt to connect to lxc containers by passing --noseclabel to virsh.
This is necessary when running on systems which do not have SELinux.
The default behavior is no::
libvirt_lxc_noseclabel = True
2017-01-05 22:38:36 +01:00
.. _show_custom_stats:
show_custom_stats
=================
.. versionadded :: 2.3
If enabled, this setting will display custom stats (set via set_stats plugin) when using the default callback.
2015-12-10 05:25:23 +01:00
Galaxy Settings
---------------
The following options can be set in the [galaxy] section of ansible.cfg:
server
======
2015-12-10 16:57:48 +01:00
Override the default Galaxy server value of https://galaxy.ansible.com. Useful if you have a hosted version of the Galaxy web app or want to point to the testing site https://galaxy-qa.ansible.com. It does not work against private, hosted repos, which Galaxy can use for fetching and installing roles.
2015-12-10 05:25:23 +01:00
ignore_certs
============
If set to *yes* , ansible-galaxy will not validate TLS certificates. Handy for testing against a server with a self-signed certificate
2015-12-10 16:57:48 +01:00
.
2016-10-22 00:20:59 +02:00
ver with a self-signed certificate
.