I can't test this right now but I think you need to add @ when you want the vars to be loaded from a file: i.e.
$ ansilble-playbook -e "@var.yml" playbook.yml Documentation only shows example for json, but reading the text implies it would also work with yaml. http://docs.ansible.com/playbooks_variables.html#passing-variables-on-the-command-line On Wednesday, February 11, 2015 at 4:56:32 PM UTC, Paulo Gabriel Poiati wrote: > > Hello all, > > I'm struggle with this command line option. How can I use an YAML file > with the `-e` option? > > `$ ansilble-playbook -e /path/to/my/var.yml playbook.yml` doesn't works. > > I'm using ansible 1.8.2. > > Thanks in advance. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/111adbf0-268d-4d1a-8598-c3af3ad85207%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
