Forrest logo
tool overview
On this page you find all important commands for the CLI tool ansible. If the command you are looking for is missing please ask our AI.

ansible

Automation for everyone No matter your role, or what your automation goals are, Ansible can help you demonstrate value, connect teams, and deliver efficiencies for your organization. Built on open source, Red Hat® Ansible® Automation Platform is a hardened, tested subscription product that offers full life cycle support for organizations. Explore how Ansible can help you automate today—and scale for the future.

List of commands for ansible:

  • 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
tool overview