This is exactly the problem, thank you so much. I think the ansible-playbook help needs some documentation improvement.
On Wed Feb 11 2015 at 7:34:46 PM J Hawkesworth < [email protected]> wrote: > 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/XpcGvejde_g/unsubscribe. > To unsubscribe from this group and all its topics, 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 > <https://groups.google.com/d/msgid/ansible-project/111adbf0-268d-4d1a-8598-c3af3ad85207%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CABqSV%3DKnKMtLU-xj4mqsF_8h9Ds%3DMEG0pxWQxXyGhWYng2dRnA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
