Commit Graph

12 Commits (f5aacebbbddf6553d8de7e2306039d6a24538f72)

Author SHA1 Message Date
Rene Moser 0c70e898cc host: fix bug, alias was not removed 11 years ago
Rene Moser 6da2d55007 host: removed unused self_has_aliases 11 years ago
Rene Moser a61f46f4f0 host: skip lines beginning with new line 11 years ago
Rene Moser ca5e5cfebc host: fix changed is not available on fail 11 years ago
Michael Scherer d5c290b513 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 ff84812047 host: minor doc style improvements 11 years ago
Rene Moser 803b2b91a6 host: added another example 11 years ago
James Cammarata a6d62ef59b Minor pep8 cleanup 11 years ago
James Cammarata 4420379f59 Fixing some bugs found during testing in the host module 11 years ago
René Moser 0ba7acd205 host: code cleanup 11 years ago
René Moser bcaab4236b host: updated version_added 11 years ago
Rene Moser 7f96dd832f 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