|
@@ -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 in a json file:
|
|
|
+
|
|
|
+`ansible-playbook {{playbook}} -e "@{{variables.json}}"`
|