Commit Graph

12 Commits (3267d40ff2a61ee92a10f3122d48511cf1a225a8)

Author SHA1 Message Date
Rene Moser b1f27ca902 host: fix bug, alias was not removed 11 years ago
Rene Moser 25f527a32d host: removed unused self_has_aliases 11 years ago
Rene Moser ee9dc73a63 host: skip lines beginning with new line 11 years ago
Rene Moser 502d9f43e5 host: fix changed is not available on fail 11 years ago
Michael Scherer 4fb753997f fix logic in module host to add aliases even if none exist already, fix #4563
self._has_aliases is used to know if a alias already exist, but
the test we want is to know if we need to add a new alias, which
is stored in self.aliases
11 years ago
Rene Moser 9f969cd3ec host: minor doc style improvements 11 years ago
Rene Moser 497b742935 host: added another example 11 years ago
James Cammarata 28592ed64f Minor pep8 cleanup 11 years ago
James Cammarata d4ba1f9ded Fixing some bugs found during testing in the host module 11 years ago
René Moser d2d6b20d99 host: code cleanup 11 years ago
René Moser 9f5d8f8482 host: updated version_added 11 years ago
Rene Moser 318c956a22 added module host
Add or remove entries in /etc/hosts using tasks:
- host: ip=127.0.0.1 hostname=localhost aliases=foobar.com,localhost.foobar.com
- host: ip=127.0.0.1 hostname=localhost state=present
- host: ip=192.168.1.1 state=absent
- host: hostname=localhost state=absent
- host: ip=::1 hostname=localhost aliases=ip6-localhost,ip6-loopback
11 years ago