I have few variables defined in a variable.yml file for example 

cat variable.com ( its a dynamic file and the value keeps changing ) 
ptr_image: my.example.com/jobname/testname
ver_number: v99

I am using this in my playbook ... build.yml

where i am using this file for the variables..

---
- name: to execute the build 
  tasks:
  - name: exporting the variables
    include_vars: variable.yml 
  - name: running the docker stack
    shell: docket stack -c some.yml .. 

     

but while running the command docker stack this variable is not exporting 
and throws error . Could you please help as to how can i export this 
variable .
.i have tried environment module environment but its not exporting i am not 
sure if i am doing it correctly...Thank you 
      



-- 
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/6be333d1-917f-49c5-bb97-91cc9b155072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to