ansible/ansible — pull request #4847 by stefanfriedel (2013-11-08 09:02:51+00:00)
Title: Hostcomment

I started to use the new system/host modules to add entries to /etc/hosts. I'm using inline comments in /etc/hosts like
10.20.30.1 myhost alias1 alias2 # comment for this host
I wrote some lines for a new option "comment" which makes the host module respect this kind of comments in /etc/hosts.