Pretty Print Ansible Inventory
Use the ansible-inventory command using the --graph: ansible-inventory -i inventory --graph
Use the ansible-inventory command using the --graph: ansible-inventory -i inventory --graph
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.