Forrest logo
back to context overview

ansible

List of commands for ansible:

  • ansible:ai:25f65 This Ansible ad-hoc command starts the sshd service on all target machines
    $ ansible all -m service -a 'name=sshd state=started'
    try on your machine
    explain this command
  • ansible:ai:e4332 Ad-hoc Ansible command to start the sshd service on all hosts
    $ ansible all -m service -a 'name=sshd state=started' -b
    try on your machine
    explain this command
  • ansible:tldr:4bfff ansible: Execute a command with administrative privileges.
    $ ansible ${group} --become --ask-become-pass -m command -a '${my_command}'
    try on your machine
    explain this command
  • ansible:tldr:79594 ansible: Execute a command using a custom inventory file.
    $ ansible ${group} -i ${inventory_file} -m command -a '${my_command}'
    try on your machine
    explain this command
  • ansible:tldr:cd0ce ansible: Display facts about a group of hosts by invoking the setup module.
    $ ansible ${group} -m setup
    try on your machine
    explain this command
  • ansible:tldr:d4956 ansible: Execute a command on a group of hosts by invoking command module with arguments.
    $ ansible ${group} -m command -a '${my_command}'
    try on your machine
    explain this command
  • ansible:tldr:df825 ansible: List the groups in an inventory.
    $ ansible localhost -m debug -a '${var=groups-keys()}'
    try on your machine
    explain this command
  • ansible:tldr:fa7be ansible: Ping a group of hosts by invoking the ping module.
    $ ansible ${group} -m ping
    try on your machine
    explain this command
  • ansible:tldr:fba27 ansible: List hosts belonging to a group.
    $ ansible ${group} --list-hosts
    try on your machine
    explain this command
back to context overview