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 )
so how do we export the change/dynamic values so that the command docker stack -c somefile.yml runs with the exported variables..when using environment module..please share your insight ...thanks On Thu, Dec 14, 2017 at 8:28 PM, Kai Stian Olstad < [email protected]> wrote: > On Thursday, 14 December 2017 14.07.22 CET coach rhca wrote: > > > > any thoughts or approach in this regard. .... > > Check out environments, include vars doesn't export anything to a shell. > It only load the variable inside Ansible. > > > -- > 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/1555938.51JeM8QOfE%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/CALguqPKXCgB71ZTzKsY2R-2%2BhyS4C0QK6tSuhK1MkVus-Ev9HA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
