There was a leading \n and a trailing \n that is causing the script to add two lines everytime it's run. Change-Id: I42530b64efc8e7be0d309401c284f16050256e8a
Permit injecting content into /etc/hosts from heat
Configuration
hosts: '192.0.2.1 my-host.example.com'