ansible-playbook -i <inventory-file-name> <role-name> --extra-vars ' "var1=var1-value,' var2=var2-value, 'var3=var3-value " '
And ansible give the following error:
Traceback (most recent call last):
File "/usr/local/bin/ansible-playbook", line 317, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/local/bin/ansible-playbook", line 148, in main
extra_vars = utils.combine_vars(extra_vars, utils.parse_kv(extra_vars_opt))
File "/Library/Python/2.7/site-packages/ansible/utils/__init__.py", line 621, in parse_kv
vargs = split_args(args)
File "/Library/Python/2.7/site-packages/ansible/utils/splitter.py", line 148, in split_args
raise Exception("error while splitting arguments, either an unbalanced jinja2 block or quotes")
Exception: error while splitting arguments, either an unbalanced jinja2 block or quotes
Has anyone come across such a situation before ?
---
# NOTE: "=" is replaced by ':'
var1: $var1-value
var2: $var2-value
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a97b244f-f05b-4c72-a95a-ad48974c853d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAG9juEqT_7yNCyFg%2BCO15EyhNTR7wiqE8hLoPpzUHCLdKrLHAQ%40mail.gmail.com.
msg: value of state must be one of: running,started,stopped,restarted,reloaded, got: $manageI have also tried:
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ecc87955-2887-4ada-b5ee-d6d208b61ab0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2c2d6746-484b-4220-befe-cd00d48bc7a9%40email.android.com.