From 148d4f624864bb8c6dc5100cffdfd4e21f762885 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 27 May 2021 21:18:48 +0530 Subject: [PATCH] hostname: Add support for RedOS (#74844) Fixes: #74779 Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/redos_hostname.yml | 3 +++ lib/ansible/modules/hostname.py | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 changelogs/fragments/redos_hostname.yml diff --git a/changelogs/fragments/redos_hostname.yml b/changelogs/fragments/redos_hostname.yml new file mode 100644 index 00000000000..6d5abdb431c --- /dev/null +++ b/changelogs/fragments/redos_hostname.yml @@ -0,0 +1,3 @@ +--- +minor_changes: +- hostname - add support RedOS (https://github.com/ansible/ansible/issues/74779). diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 5d7ba5614e9..af8a7999d92 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -923,6 +923,12 @@ class RockyHostname(Hostname): strategy_class = SystemdStrategy +class RedosHostname(Hostname): + platform = 'Linux' + distribution = 'Redos' + strategy_class = SystemdStrategy + + def main(): module = AnsibleModule( argument_spec=dict(