Ansible has its default configuration file in /etc/ansible/ansible.cfg. There are many options grouped in blocks. These are the blocks and the most-used options:
- [defaults]: The default configuration options for the execution of Ansible:
- inventory: Defines the location of the inventory file, which by default is /etc/ansible/hosts
-
- sudo_user: The user with whom sudo will log in; by default it is root
- forks: The number of Ansible parallel processes; by default it is 5
- timeout: The timeout for an SSH connection; the default is 10 seconds
- log_path: The location of the log file; by default /var/log/ansible.log
- nocows: If its value is 0 and we have cowsay installed, we will see one of the animals reporting the playbooks; ...