Re: [ansible-project] using hosts mentioned in inventory files in my tasks

2020-02-26 Thread Srinivas Naram
try {{ inventory_hostname }} Regards Srini On Wed, Feb 26, 2020 at 4:49 PM Vishal Bobade wrote: > Hello , > > I have a inventory file with some 5-6 hosts and I want use them in some of > my tasks/main.yml file. Could some one please suggest how can I do that . > > Lets say below is my

[ansible-project] using hosts mentioned in inventory files in my tasks

2020-02-26 Thread Vishal Bobade
Hello , I have a inventory file with some 5-6 hosts and I want use them in some of my tasks/main.yml file. Could some one please suggest how can I do that . Lets say below is my inventory file