MalcolmChalmers.com

Linux Tips and Tricks

HOME

List Hosts

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

HOME