So i am creating a ansible.cfg file configuration and i am adding stdout_callback = error in the default section and it didn’t work for me here’s my ansible.cfg file
[defaults]
remote_user = ansible
inventory = inventory
sudo_user = ansible
ask_pass = False
forks = 1
#collections_path=
roles_path = roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
#stdout_callback = debug
stdout_callback = error
[privilege_escalation]
become = True
become_ask_pass= False
beccome_method = sudo
become_user = root
And here’s the output after running a playbook that has an error:
ansible-playbook PbContainsError.yml
ERROR! Invalid callback for stdout specified: error