hostname module: add support for Amazon Linux
Merge pull request #5090 from dragon3/hostname_support_amazon_linux

hostname module: add support for Amazon Linux