ansible-inventory -i <inventory file> --host_list
ansible-inventory --yaml -i <inventory file> --list --output inventory.yaml
ansible-inventory -i <inventory file> --host_list
ansible-inventory --yaml -i <inventory file> --list --output inventory.yaml