sorry for coming back to this again...if we have multiple vars file will
the logic be the same....for example ..

include_vars:
        file: {{item}} (rather than one file variable.yml)

* with_items:*

*                 - variable1.yml*

*                 - variable2.yml*
*                 - variable3.yml*
        name: myenvvars


  - name: running the docker stack
    shell: docket stack -c some.yml ..
    environment: '{{myenvvars}}'

please can you share the insight ...

On Fri, Dec 15, 2017 at 12:56 PM, coach rhca <coach.r...@gmail.com> wrote:

> Thanks a ton  Brian for the help...
>
> On Thu, Dec 14, 2017 at 11:50 PM, Brian Coca <bc...@redhat.com> wrote:
>
>> - name: to execute the build
>>   tasks:
>>   - name: exporting the variables
>>     include_vars:
>>         file: variable.yml
>>         name: myenvvars
>>
>>   - name: running the docker stack
>>     shell: docket stack -c some.yml ..
>>     environment: '{{myenvvars}}'
>>
>>
>> --
>> ----------
>> Brian Coca
>>
>> --
>> 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/glH8oHQHiC0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/CACVha7crB1C-mxTE4A6kLRrtQvfbzsYJB%3DJgF
>> OOKeLLrvN9UyA%40mail.gmail.com.
>> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALguqPJAoz%3Dbdn2BdqdGuBrzAFzP8N2-tNv_Vz_pvTcR8m_%2BGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to