diff --git a/changelogs/fragments/hostname-oracle-linux-regeression.yaml b/changelogs/fragments/hostname-oracle-linux-regeression.yaml new file mode 100644 index 00000000000..9f4f57df742 --- /dev/null +++ b/changelogs/fragments/hostname-oracle-linux-regeression.yaml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - fix regression with Oracle Linux (https://github.com/ansible/ansible/issues/42726) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index e064b23fe85..67212a85b97 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -639,7 +639,7 @@ class ScientificHostname(Hostname): class OracleLinuxHostname(Hostname): platform = 'Linux' - distribution = 'Ol' + distribution = 'Oracle' strategy_class = RedHatStrategy