Forrest logo
back to the ansible-playbook tool

ansible-playbook:tldr:d6aca

ansible-playbook: Run tasks in playbook with custom host inventory.
$ ansible-playbook ${playbook} -i ${inventory_file}
try on your machine

This is a command for executing an Ansible playbook with specific parameters.

Here's the breakdown of the command:

  • ansible-playbook is the Ansible command to run a playbook.
  • ${playbook} is a placeholder for the name or path of the playbook file you want to execute. Replace it with the actual name or path of your playbook file.
  • -i specifies the inventory file option. ${inventory_file} is a placeholder for the name or path of the inventory file you want to use. Replace it with the actual name or path of your inventory file.

Overall, this command executes the specified Ansible playbook using the given inventory file for targeting hosts and groups. Make sure to replace the placeholders with the actual names or paths you want to use.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ansible-playbook tool