Re: [ansible-project] Re: How to use variables from one task in another task

2019-10-07 Thread Srinivas Naram
Hi All, Thanks for your time and efforts to help me out with the issue. I understood the mistak. I missed out making changes in the config file as described in below link https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#caching-facts TA On Fri, Oct 4, 2019 at

[ansible-project] Re: How to use variables from one task in another task

2019-10-04 Thread Miroslav Windhouwer
If I understand you correctly than try to do this. Make a folder host_var in your inventory folder. Than make a file with the exact same name as your host inside it, something like: inventory/host_var/host1.yaml Inside that file you'll put the vars and those you can you use global for that

[ansible-project] Re: How to use variables from one task in another task

2019-10-04 Thread Srinivas Naram
Hello Ansible Gurus, Any inputs for me to resolve this issue. On Friday, September 20, 2019 at 1:07:20 PM UTC+5:30, Srinivas Naram wrote: > > Hello Ansible Gurus, > > I am new to Ansible and trying to get my hands dirty on playbooks. I wrote > an yaml file to use a variable from one host tasks