how to obtain ip info

26 views
Skip to first unread message

lande...@gmail.com

unread,
May 2, 2019, 3:14:07 AM5/2/19
to Ansible Project
I need ip, gateway and netmask info

Raghavendra Rao

unread,
May 2, 2019, 3:58:03 AM5/2/19
to ansible...@googlegroups.com
Use ansible facts. Read about them more in the documentation section.

On Thu, 2 May 2019, 12:44 , <lande...@gmail.com> wrote:
I need ip, gateway and netmask info

--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e9eca0b7-22a0-40d8-a44e-d64073a6ae0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

lande...@gmail.com

unread,
May 2, 2019, 4:47:57 AM5/2/19
to Ansible Project
Can you give me a documentation?

Stephen John Smoogen

unread,
May 2, 2019, 7:50:57 AM5/2/19
to ansible...@googlegroups.com
On Thu, 2 May 2019 at 04:48, <lande...@gmail.com> wrote:
Can you give me a documentation?


--
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 post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Stephen J Smoogen.

Raghavendra Rao

unread,
May 2, 2019, 7:51:41 AM5/2/19
to ansible...@googlegroups.com

Also run this adhoc command to gather info about all your hosts at once, then check which variables can be used for IP related information:

#ansible all -m setup | less


On Thu, 2 May 2019 at 14:18, <lande...@gmail.com> wrote:
Can you give me a documentation?

--
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 post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages