Hi,
That's exactly what I have been looking for.
Thanks,
On Tuesday, November 19, 2013 3:26:25 AM UTC+5:30, Timothy Appnel wrote:
>
> I've added a var_file from the command line using a variable inside of the
> extra-vars option on the command line. Something like...
>
>
> $ ansible-playbook all some_plabook.yml
> --extra-vars="myvarfile=/path/to/varfile"
>
>
> Where some_plabook.yml has a:
>
>
> vars_files: {{ myvarfile }}
>
>
> It's a bit verbose and ugly as opposed to having an explicit var-file
> option, but it works.
>
> <tim/>
>
> Sent from my iPhone
>
> On Nov 18, 2013, at 8:43, [email protected] <javascript:> wrote:
>
> Hi,
>
> I have used var_files to include a variable file inside of a playbook.
>
> But I would like to know whether it's possible to pass the file path as a
> part of the ansible-playbook command itself.
>
> Thanks,
> Chinmaya
>
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.