I need to replace public ip from /etc/hosts file with private ip in bulk 
cluster of systems.
Ansible gathered fact , may work but not sure which is for what.

Another way, I can have public and private ip register as variable and swap 
them.

What would be the best practice to do in ansible way?

Currently in /etc/hosts 
________
public_ip   hostname short_hostname

I need to change it to 

private_ip  hostname short_hostname

-- 
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/43fb52e8-4388-4287-ada7-7c8f7692cb21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to