ansible-playbook: add extra-vars examples (#1587)

coverage
Starbeamrainbowlabs 2017-10-27 18:57:59 +01:00 committed by GitHub
commit a7c936e3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -9,3 +9,11 @@
- Run tasks in playbook with custom host inventory: - Run tasks in playbook with custom host inventory:
`ansible-playbook {{playbook}} -i {{inventory_file}}` `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}}"`