Configuring Ansible

    Certain settings in Ansible are adjustable via a configuration file (ansible.cfg).The stock configuration should be sufficient for most users, but there may be reasons you would want to change them.Paths where configuration file is searched are listed in .

    If installing Ansible from a package manager, the latest ansible.cfg file should be present in /etc/ansible, possiblyas a “.rpmnew” file (or other) as appropriate in the case of updates.

    An example file is available on Github.

    For more details and a full listing of available configurations go to . Starting with Ansible version 2.4, you can use the ansible-config command line utility to list your available options and inspect the current values.

    Ansible also allows configuration of settings using environment variables.If these environment variables are set, they will override any setting loaded from the configuration file.

    You can get a full listing of available environment variables from .

    The full list of options available is in ansible-playbook and .