From f2246deaf93a9a139fe2a47e7661799d461b5b61 Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Tue, 12 Jan 2016 20:29:22 +0900 Subject: [PATCH] Doc: Add NOTE about hostname modules does not modify /etc/hosts --- lib/ansible/modules/system/hostname.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 711aebd9a9f..5ff421b7eb2 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -28,9 +28,10 @@ version_added: "1.4" short_description: Manage hostname requirements: [ hostname ] description: - - Set system's hostname + - Set system's hostname. - Currently implemented on Debian, Ubuntu, Fedora, RedHat, openSUSE, Linaro, ScientificLinux, Arch, CentOS, AMI. - - Any distribution that uses systemd as their init system + - Any distribution that uses systemd as their init system. + - NOTE: This module does NOT modify /etc/hosts. You need to modify it yourself using other modules like template or replace. options: name: required: true