Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Fix hosts file entries - remove duplicates/stale entries #1

Closed
wants to merge 1 commit into from

Conversation

andymcc
Copy link
Contributor

@andymcc andymcc commented Aug 27, 2014

Adds to tasks in the updatehostsfile play that will do the following to
the /etc/hosts file:

  • Removes any entries that match the IP of current host, but with a
    different hostname
  • Removes any entries that match the hostname of the current host but
    with a different IP

This will prevent duplicate entries and other /etc/hosts file related
strangeness.

Fixes #287

Adds to tasks in the updatehostsfile play that will do the following to
the /etc/hosts file:
* Removes any entries that match the IP of current host, but with a
  different hostname
* Removes any entries that match the hostname of the current host but
  with a different IP

This will prevent duplicate entries and other /etc/hosts file related
strangeness.

Fixes #287
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant