mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 06:18:17 +01:00
633 B
633 B
ansible-playbook
Execute tasks defined in playbook on remote machines over SSH. More information: https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html.
- Run tasks in playbook:
ansible-playbook {{playbook}}
- Run tasks in playbook with custom host inventory:
ansible-playbook {{playbook}} -i {{inventory_file}}
- Run tasks in playbook with extra variables defined via the command line:
ansible-playbook {{playbook}} -e "{{variable1}}={{value1}} {{variable2}}={{value2}}"
- Run tasks in playbook with extra variables defined in a json file:
ansible-playbook {{playbook}} -e "@{{variables.json}}"