Thanks for the reply.

No what I meant was how can you make ansible talk to a target host without 
ansible host file not hard coding with the ip address, am newbie to 
ansible. Apologizes if this seems straightforward.

Thanks,
Anirudh Vasudevan


On Friday, November 11, 2016 at 4:20:41 PM UTC-5, Kai Stian Olstad wrote:
>
> On 11. nov. 2016 18:30, anirudh vasudevan wrote: 
> > I know the conventional way of using Ansible is copying the ssh key on 
> to 
> > the target and then adding the ip address to the inventory file. 
>
> I don't agree in this statement, I use hostname and username/password. 
>
> > In my case 
> > I will not know the Ip address of the target that am testing on, how can 
> > ansible get me the ip address? Any workaround 
>
> DNS? 
>
> -- 
> Kai Stian Olstad 
>

-- 
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/d7f5e690-dc2c-4bac-b7ee-f67891a02af9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to