If you want to pass in the host specifier, you'll need to use "-e".  Or
maybe a lookup plugin reading an environment variable.  -e is a bit clear.

-e @filename.yml is also a valid syntax.




On Thu, Jul 17, 2014 at 5:33 AM, Serge van Ginderachter <
[email protected]> wrote:

>
> On 17 July 2014 11:29, John Wang <[email protected]> wrote:
>
>> I felt that. Then is there a way to define variable which can be used in
>> the position of the mentioned "var1" in foo.yml ? Is the command line
>> options (i.e., -e) is the only way ?
>
>
>
> ​I believe so yes. Not sure if there's a way to use a var from var: of
> vars_files: section, but maybe if set in a previous play.​
>
> --
> 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/CAEhzMJCeYJcE3MNUGtiyPx%2BdgpZ4RNFJGd42c2NWAXPT5NQk0w%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEhzMJCeYJcE3MNUGtiyPx%2BdgpZ4RNFJGd42c2NWAXPT5NQk0w%40mail.gmail.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/CA%2BnsWgy46S4x%2BsY5L_2kKCfzanT6xYWx0Qvi%2BWg5tGNid0FGSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to