1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 05:35:23 +02:00

ansible: add list groups in an inventory example (#5755)

This commit is contained in:
Adam Herst 2021-04-15 14:30:12 -04:00 committed by GitHub
parent 99153a860d
commit f72f348a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,3 +27,7 @@
- Execute a command using a custom inventory file:
`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'`
- List the groups in an inventory:
`ansible localhost -m debug -a '{{var=groups.keys()}}'`