Gopi Krishna, Did you got any solution for this? Now I was in the same situation.
On Wednesday, 21 February 2018 12:27:16 UTC+5:30, Gopi Krishna wrote: > > Hi All, > > - name: "source then env file" > shell: . /home/myfiles/setup.env > > I used . & source to source the env file, but its was not happening the > way that works in linux environement > > my setup.env: > export ip_net=xx.xx.xx > export home_net=xx.xx.xx > > > expected: > g...@xx.xx.xx.xx> . /home/myfiles/setup.env > g...@xx.xx.xx.xx> echo $ip_net > xx.xx.xx.xx > g...@xx.xx.xx.xx> > > > Actual: > g...@xx.xx.xx.xx> echo $ip_net > > g...@xx.xx.xx.xx> > > its throwing empty for the variable ip_net, how to achieve this > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cd73a095-3a89-4f01-b774-352c79d967f3%40googlegroups.com.