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.
Add ‘localhost’ to your inventory?
It is there , do I need to use gather facts. Or any other better way ?