# to list hosts in a group ansible <group_name> --list-hosts e.g. ansible webservers --lists-hosts ansible all --list-hosts