On Thursday, 14 December 2017 16.35.10 CET coach rhca wrote:
>
> thanks Kai, if the include_vars will not export , i have tried the
> environment module too... the variable file is dynamic and every time it
> changes the value.
> cat variable.yml <http://variable.com>( its a dynamic file and the value
> keeps changing )
> ptr_image: my.example.com/jobname/testname ======>( this value will change
> frequently ) <http://my.example.com/jobname/testname>
> ver_number: v99 ===> (this values will change frequently in the file say
> to v100 v101 ....v150 )
Run the include_var but on the shell you need to list all the variables again,
then the variables is available in the shell.
- shell: docker..........
environment:
ver_number: '{{ ver_number }}'
...
...
...
--
Kai Stian Olstad
--
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/2498833.1BjVPuK4Lf%40x1.
For more options, visit https://groups.google.com/d/optout.