diff --git a/changelogs/fragments/66911-fix-cloudlinux6-hostname.yaml b/changelogs/fragments/66911-fix-cloudlinux6-hostname.yaml new file mode 100644 index 00000000000..27899881e40 --- /dev/null +++ b/changelogs/fragments/66911-fix-cloudlinux6-hostname.yaml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - Fixed an issue where the hostname on the cloudlinux 6 server could not be set. diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index e67aa31b543..6021b446342 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -658,6 +658,12 @@ class ClearLinuxHostname(Hostname): strategy_class = SystemdStrategy +class CloudlinuxserverHostname(Hostname): + platform = 'Linux' + distribution = 'Cloudlinuxserver' + strategy_class = RedHatStrategy + + class CloudlinuxHostname(Hostname): platform = 'Linux' distribution = 'Cloudlinux'