Need Help

16 views
Skip to first unread message

Rahul Kumar

unread,
Jul 23, 2019, 12:56:28 AM7/23/19
to ansible...@googlegroups.com
Hi,
I am trying to take backup of some REST API dump on target nodes .
Assume that 3 nodes in cluster and 1 is controller node from where we invoke playbook,
I need that backup on controller node as well. I can use modules like copy, fetch etc. but how i will know the
hostname or IP dynamically of  controller node.

Dick Visser

unread,
Jul 23, 2019, 1:02:41 AM7/23/19
to ansible...@googlegroups.com
Add ‘localhost’ to your inventory?

--
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/CAGH8rEzZDBWt3j0z_yRRS%3DdN6PyLHU8wmzs%3DWMsOcVR0UsazkQ%40mail.gmail.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Rahul Kumar

unread,
Jul 23, 2019, 1:08:10 AM7/23/19
to ansible...@googlegroups.com
It is there , do I need to use gather facts. Or any other better way ?

Reply all
Reply to author
Forward
0 new messages