diff --git a/changelogs/fragments/72894-add-alinux-hostname-module-support.yml b/changelogs/fragments/72894-add-alinux-hostname-module-support.yml new file mode 100644 index 00000000000..7cf790a013f --- /dev/null +++ b/changelogs/fragments/72894-add-alinux-hostname-module-support.yml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - Fixed an issue where the hostname on the alinux could not be set. \ No newline at end of file diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 2a13d2ef5a3..95491dba8ac 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -812,6 +812,12 @@ class CloudlinuxHostname(Hostname): strategy_class = RedHatStrategy +class AlinuxHostname(Hostname): + platform = 'Linux' + distribution = 'Alinux' + strategy_class = RedHatStrategy + + class CoreosHostname(Hostname): platform = 'Linux' distribution = 'Coreos'