From 98726ad86c27b4cbd607f7be97ae0f56461fcc03 Mon Sep 17 00:00:00 2001 From: Brad Solomon Date: Mon, 11 Jan 2021 15:10:26 -0500 Subject: [PATCH] hostname module: advise 'use:systemd' for RHEL/EL/CentOS 7+ (#72444) Closes: https://github.com/ansible/ansible/issues/72429 Co-authored-by: Brad Solomon --- lib/ansible/modules/hostname.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 8add2a95507..a1598e92ec2 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -37,6 +37,7 @@ options: description: - Which strategy to use to update the hostname. - If not set we try to autodetect, but this can be problematic, particularly with containers as they can present misleading information. + - Note that 'systemd' should be specified for RHEL/EL/CentOS 7+. Older distributions should use 'redhat'. choices: ['alpine', 'debian', 'freebsd', 'generic', 'macos', 'macosx', 'darwin', 'openbsd', 'openrc', 'redhat', 'sles', 'solaris', 'systemd'] type: str version_added: '2.9'