Add support for OSCM-distribution in hostname module (#66190)

Fixes: #66189

Added subclass to detect the new distribution OSMC
pull/66198/head
Thomas Hucke 5 years ago committed by Abhijeet Kasurde
parent 193879d462
commit d56d0f97e3

@ -0,0 +1,2 @@
bugfixes:
- Added support for OSMC distro in hostname module (https://github.com/ansible/ansible/issues/66189).

@ -796,6 +796,12 @@ class NeonHostname(Hostname):
strategy_class = DebianStrategy
class OsmcHostname(Hostname):
platform = 'Linux'
distribution = 'Osmc'
strategy_class = SystemdStrategy
def main():
module = AnsibleModule(
argument_spec=dict(

Loading…
Cancel
Save