ansible
Manage groups of computers remotely over SSH. tldr-pages
On several platforms
Several platforms
Manage groups of computers remotely over SSH. (use the /etc/ansible/hosts file to add new groups/hosts). Some subcommands such as galaxy have their own usage documentation.
List hosts belonging to a group
ansible group --list-hostsIdentifyPing a group of hosts by invoking the ping module
ansible group --module-name pingIdentifyDisplay facts about a group of hosts by invoking the setup module
ansible group --module-name setupIdentifyExecute a command on a group of hosts by invoking command module with arguments
ansible group --module-name command --args 'my_command'IdentifyExecute a command with administrative privileges
ansible group --become --ask-become-pass --module-name command --args 'my_command'IdentifyExecute a command using a custom inventory file
ansible group --inventory inventory_file --module-name command --args 'my_command'IdentifyList the groups in an inventory
ansible localhost --module-name debug --args 'var=groups.keys()'Identify