i am trying to use the shell:  cat testfile |sed 's/\//\n/g' and got the
values in column wise ,could you please help as how i can get this values
individually using register.

On Tue, Dec 12, 2017 at 12:00 PM, coach rhca <[email protected]> wrote:

> 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/to
>> pic/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/ms
>> gid/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/CALguqPKgWDh7%2Bb%2Bf70y0SbheNOt9dTkz4nNNOZV5HB_y5yQd5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to