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

ansible-playbook

the tool to run Ansible playbooks, which are a configuration and multinode deployment system. See the project home page (https://docs.ansible.com) for more information.

List of commands for ansible-playbook:

  • ansible-playbook:tldr:47c2a ansible-playbook: Run tasks in playbook with extra variables defined in a JSON file.
    $ ansible-playbook ${playbook} -e "@${variables-json}"
    try on your machine
    explain this command
  • ansible-playbook:tldr:5f73b ansible-playbook: Run tasks in playbook for the given tags.
    $ ansible-playbook ${playbook} --tags ${tag1,tag2}
    try on your machine
    explain this command
  • ansible-playbook:tldr:754ae ansible-playbook: Run tasks in playbook with extra variables defined via the command-line.
    $ ansible-playbook ${playbook} -e "${variable1}=${value1} ${variable2}=${value2}"
    try on your machine
    explain this command
  • ansible-playbook:tldr:d6aca ansible-playbook: Run tasks in playbook with custom host inventory.
    $ ansible-playbook ${playbook} -i ${inventory_file}
    try on your machine
    explain this command
  • ansible-playbook:tldr:e7f94 ansible-playbook: Run tasks in a playbook starting at a specific task.
    $ ansible-playbook ${playbook} --start-at ${task_name}
    try on your machine
    explain this command
  • ansible-playbook:tldr:f48ef ansible-playbook: Run tasks in playbook.
    $ ansible-playbook ${playbook}
    try on your machine
    explain this command
tool overview