mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-29 21:13:23 -07:00
Merge pull request #4868 from hnakamur/rhel5_hostname_fix
hostname module fix for RHEL5
This commit is contained in:
commit
5e0c6e0af3
1 changed files with 5 additions and 0 deletions
|
@ -221,6 +221,11 @@ class RedHatStrategy(GenericStrategy):
|
||||||
self.module.fail_json(msg="failed to update hostname: %s" %
|
self.module.fail_json(msg="failed to update hostname: %s" %
|
||||||
str(err))
|
str(err))
|
||||||
|
|
||||||
|
class RedHat5Hostname(Hostname):
|
||||||
|
platform = 'Linux'
|
||||||
|
distribution = 'Redhat'
|
||||||
|
strategy_class = RedHatStrategy
|
||||||
|
|
||||||
class RedHatHostname(Hostname):
|
class RedHatHostname(Hostname):
|
||||||
platform = 'Linux'
|
platform = 'Linux'
|
||||||
distribution = 'Red hat enterprise linux server'
|
distribution = 'Red hat enterprise linux server'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue