How to Remove /etc/hosts entries on the remote server using Ansible playbook. I need only the default entries to be present.
I need only below entries to be present:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
To Be Removed Ex:
192.104.1.1 app.original.as.domain apporiginal