List the groups in an inventory
Prints the names of all groups defined in the inventory, using the debug module on the local machine.
ansible localhost -m debug -a 'var=groups.keys()'Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/ansible.md), licensed under CC BY 4.0.