diff --git a/changelogs/fragments/add-anolis-distro-in-hostname.yaml b/changelogs/fragments/add-anolis-distro-in-hostname.yaml new file mode 100644 index 00000000000..762b872ad96 --- /dev/null +++ b/changelogs/fragments/add-anolis-distro-in-hostname.yaml @@ -0,0 +1,2 @@ +minor_changes: +- modules - add Anolis distro in hostname.py. project website https://openanolis.org/ diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index dd1ef84f447..5d7ba5614e9 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -713,6 +713,12 @@ class CentOSHostname(Hostname): strategy_class = RedHatStrategy +class AnolisOSHostname(Hostname): + platform = 'Linux' + distribution = 'Anolis' + strategy_class = RedHatStrategy + + class ClearLinuxHostname(Hostname): platform = 'Linux' distribution = 'Clear-linux-os'