Merge branch 'feature/hosts-needs-hostname' into '2.x'

Do not update /etc/hosts file if target hostname is not set



See merge request !21
2 jobs for 2.x in 9 seconds (queued for 3 seconds)