just to add the flatfile is on a remote machine...

On Tue, Dec 12, 2017 at 11:58 AM, <[email protected]> wrote:

> Hi,
>
> Trying to read the values from flat files and to use it as a variables in
> the ansible playbook , for example
>
> the flatfile is
> #cat output
>
>  example.com/development/testcaseone:v99
>
> I want to use above values as a variables in the playbook , just like
> ---
> - hosts:
>   vars:
>     rt1: example.com
>     stage_name: development
>     job_name: testcaseone
>     version_number: v99
>
>
> I tried with lookup ('file', /path/to/output) but it gives the entire
> output of the value..
>
> thanks for the help..
>
> --
> 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/OipBBxJ_NNc/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/0dfc15cc-9ec2-4722-a04e-a4319cfcbc7a%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/0dfc15cc-9ec2-4722-a04e-a4319cfcbc7a%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/CALguqPJq0JunrHUv14-iQmJP6JmUYQUWzAGBT9wXXH_3kinW1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to