diff options
author | Sam Doran <sdoran@redhat.com> | 2021-05-17 05:24:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 04:24:35 -0500 |
commit | dd7118c4337424766abd3d73dec9fa934c40501a (patch) | |
tree | d73aafa5628f78f61541aaa45027e77494a6665c /lib/ansible/modules | |
parent | ebf7233e357494e5d2edb8ce6b5e5960897029b2 (diff) | |
download | ansible-dd7118c4337424766abd3d73dec9fa934c40501a.tar.gz |
[stable-2.11] hostname - add Rocky Linux support (#74545) (#74560)
(cherry picked from commit 2d41e5f99a4230ff730ba1bfc9c9f37836f3f67f)
Co-authored-by: Louis Abel <nazunalika@users.noreply.github.com>
Diffstat (limited to 'lib/ansible/modules')
-rw-r--r-- | lib/ansible/modules/hostname.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index dc775547a9..26556fc809 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( |