mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
ansible-playbook: add extra-vars examples
This commit is contained in:
parent
6c34492668
commit
873d2102eb
1 changed files with 8 additions and 0 deletions
|
@ -9,3 +9,11 @@
|
|||
- 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 on a json file:
|
||||
|
||||
`ansible-playbook {{playbook}} -e "@{{variables.json}}"`
|
||||
|
|
Loading…
Add table
Reference in a new issue