ansible.cfg

Ansible's INI-format settings file; a copy in the project directory sets options such as the inventory location and forks for everyone who runs there.

In more detail

Ansible checks, in order, the ANSIBLE_CONFIG environment variable, ansible.cfg in the current directory, ~/.ansible.cfg and /etc/ansible/ansible.cfg, and uses the first it finds. Keeping settings in a reviewed project file beats every engineer remembering the same flags. Most options sit under the [defaults] section.

Example

[defaults]
inventory = inventory
forks = 10

Related terms

Taught in

References

Certification courses