In the same dir where your Ansible playbook is create a file named ansible.cfg.

Paste the following content in the file:

[defaults]
stdout_callback = community.general.yaml

You’are all set.