Skip to content
Snippets Groups Projects
Commit e83b9f98 authored by Attila Farkas's avatar Attila Farkas
Browse files

add extra_vars from file to the Vagrantfile

parent 96b9bd1a
No related branches found
No related tags found
1 merge request!14Resolve "Add ability to add extra_vars for ansible"
......@@ -139,6 +139,9 @@ def _create_ansible_commands(playbook_location, input_definitions, flags):
extravars["dictionary"] = dict()
extravars["dictionary"]["ansible_python_interpreter"] = \
"\"/usr/bin/python3\""
if "extra_vars" in flags and flags["extra_vars"]:
user_extra_vars = open_yaml(flags["extra_vars"])
extravars["dictionary"].update(user_extra_vars)
commands.append(extravars)
return commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment