From 0ec98cffe21f0cc749e21c27bc50e6ec663e28d2 Mon Sep 17 00:00:00 2001 From: Andre Lehmann Date: Thu, 14 Nov 2019 10:01:22 +0100 Subject: hostname - Add Manjaro Linux distribution (#64810) * Add Manjaro Linux distribution (cherry picked from commit a75a79b84c9f41321b5bfdf57000f0922fc11715) --- .../fragments/64810-hostname-add-manjaro-linux-distribution.yml | 2 ++ lib/ansible/modules/system/hostname.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/64810-hostname-add-manjaro-linux-distribution.yml diff --git a/changelogs/fragments/64810-hostname-add-manjaro-linux-distribution.yml b/changelogs/fragments/64810-hostname-add-manjaro-linux-distribution.yml new file mode 100644 index 0000000000..1e78a63d85 --- /dev/null +++ b/changelogs/fragments/64810-hostname-add-manjaro-linux-distribution.yml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - make module work on Manjaro Linux (https://github.com/ansible/ansible/issues/61382) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index 85dcb44b8e..2f317f286f 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -621,6 +621,12 @@ class ArchARMHostname(Hostname): strategy_class = SystemdStrategy +class ManjaroHostname(Hostname): + platform = 'Linux' + distribution = 'Manjaro' + strategy_class = SystemdStrategy + + class RHELHostname(Hostname): platform = 'Linux' distribution = 'Redhat' -- cgit v1.2.1