diff --git a/changelogs/fragments/support_rocky_linux_hostname.yml b/changelogs/fragments/support_rocky_linux_hostname.yml new file mode 100644 index 00000000000..8dff2bd3563 --- /dev/null +++ b/changelogs/fragments/support_rocky_linux_hostname.yml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - Add Rocky Linux support diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index dc775547a98..26556fc8094 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -1001,6 +1001,12 @@ class PopHostname(Hostname): strategy_class = DebianStrategy +class RockyHostname(Hostname): + platform = 'Linux' + distribution = 'Rocky' + strategy_class = SystemdStrategy + + def main(): module = AnsibleModule( argument_spec=dict(