Skip to content

Ansible configuration

  1. ansible.cfg in the current directory
  2. ANSIBLE_CONFIG environment var
# Provides also current config file in use
ansible --version

Example ansible.cfg

[defualts]
inventory = ./myInventoru
remote_user: devovs 
collections_paths = ./collections/
collbacks_enabled: ansible.posix.profile_roles

Error Message Readability

Improve error message readability

# file: ansible.cfg
# stdout_callback = debug
# or
# stdout_callback = error