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

Fixes: #66189

Added subclass to detect the new distribution OSMC
This commit is contained in:
Thomas Hucke 2020-01-05 08:07:39 +01:00 committed by Abhijeet Kasurde
parent 193879d462
commit d56d0f97e3
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -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(