ansible-playbook
Execute tasks defined in playbook on remote machines over SSH.
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}"
- Run tasks in playbook for the given tags:
ansible-playbook {playbook} --tags {tag1,tag2}
- Run tasks in a playbook starting at a specific task:
ansible-playbook {playbook} --start-at {task_name}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).