Sorry Matt,

Here it is:

I'm running the command:

$ ansible-playbook -e vars.yml site.yml


############# site.yml ##############

- hosts: 'test'

  tasks:
    - command: echo {{ foo | mandatory }}

############# vars.yml ##############

---
foo: 10

############# OUTPUT ################

PLAY [test] 
*******************************************************************

GATHERING FACTS 
***************************************************************
ok: [testserver]

TASK: [command echo {{ foo | mandatory }}] 
************************************
fatal: [testserver] => One or more undefined variables: 'foo' is undefined

FATAL: all hosts have already failed -- aborting

PLAY RECAP 
********************************************************************
           to retry, use: --limit @/Users/poiati/site.retry

testserver                 : ok=1    changed=0    unreachable=1    failed=0





On Wednesday, February 11, 2015 at 2:56:32 PM UTC-2, 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/91a04b5e-7d55-461f-a4cc-1b8a792769b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to