Add support for OSCM-distribution in hostname module (#66190)
Fixes: #66189 Added subclass to detect the new distribution OSMC
This commit is contained in:
parent
193879d462
commit
d56d0f97e3
2 changed files with 8 additions and 0 deletions
2
changelogs/fragments/66189-hostname-osmc.yml
Normal file
2
changelogs/fragments/66189-hostname-osmc.yml
Normal file
|
@ -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
|
strategy_class = DebianStrategy
|
||||||
|
|
||||||
|
|
||||||
|
class OsmcHostname(Hostname):
|
||||||
|
platform = 'Linux'
|
||||||
|
distribution = 'Osmc'
|
||||||
|
strategy_class = SystemdStrategy
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
|
|
Loading…
Reference in a new issue