Commit Graph

8 Commits (6d16f85b30bafbf830ec0bf00c5b513966483bdc)

Author SHA1 Message Date
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