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 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/0dfc15cc-9ec2-4722-a04e-a4319cfcbc7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.