Thanks Kai for clarifying it...so putting variable under the environment module after shell will export the variable. ..can we see the variable with echo $ver_number on the linux host if it has been exported using environment
On Thu, Dec 14, 2017 at 9:15 PM, Kai Stian Olstad < [email protected]> wrote: > 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/glH8oHQHiC0/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/2498833.1BjVPuK4Lf%40x1. > 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/CALguqP%2BB5xdKn7_H%3DxURg19BWQW1cChTZSULP5qrK1sGKte1-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
