Pretty Print Ansible Inventory

Use the ansible-inventory command using the --graph: ansible-inventory -i inventory --graph

July 31, 2023

Pretty Print Ansible Output

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.

July 31, 2023