From 2d41e5f99a4230ff730ba1bfc9c9f37836f3f67f Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 4 May 2021 06:11:44 -0700 Subject: [PATCH] hostname - add Rocky Linux support (#74545) --- changelogs/fragments/support_rocky_linux_hostname.yml | 2 ++ lib/ansible/modules/hostname.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/support_rocky_linux_hostname.yml 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(