tldr/pages/common/ansible-playbook.md

252 B

ansible-playbook

Execute tasks defined in playbook on remote machines over SSH.

  • Run tasks in playbook:

ansible-playbook {{playbook}}

  • Run tasks in playbook with custom host inventory:

ansible-playbook {{playbook}} -i {{inventory_file}}