CmdID

CmdID / Commands

ansible

Manage groups of computers remotely over SSH. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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-hostsIdentify

Ping a group of hosts by invoking the ping module

ansible group --module-name pingIdentify

Display facts about a group of hosts by invoking the setup module

ansible group --module-name setupIdentify

Execute a command on a group of hosts by invoking command module with arguments

ansible group --module-name command --args 'my_command'Identify

Execute a command with administrative privileges

ansible group --become --ask-become-pass --module-name command --args 'my_command'Identify

Execute a command using a custom inventory file

ansible group --inventory inventory_file --module-name command --args 'my_command'Identify

List the groups in an inventory

ansible localhost --module-name debug --args 'var=groups.keys()'Identify