Gopi Krishna, Did you got any solution for this? Now I was in the same situation.
I can expect that any statements executed within the same shell task will have access to the variables, but nowhere else in the system.
What happens if you do the following?:
Hugo G.
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.xxexport home_net=xx.xx.xx
expected:
Actual:go...@xx.xx.xx.xx> echo $ip_net
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-proje...@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.