fixed the import
Dieser Commit ist enthalten in:
Ursprung
022b5d3ee5
Commit
3198a0d064
|
@ -1,10 +1,18 @@
|
|||
=====================================
|
||||
sebastian.systemd 0.3.5 Release Notes
|
||||
sebastian.systemd 0.3.6 Release Notes
|
||||
=====================================
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
|
||||
v0.3.6
|
||||
======
|
||||
|
||||
Changelog
|
||||
---------
|
||||
|
||||
fixed the import of the module utils
|
||||
|
||||
v0.3.5
|
||||
======
|
||||
|
||||
|
|
|
@ -7,47 +7,50 @@ releases:
|
|||
- added systemd_mount module
|
||||
- added systemd_network module
|
||||
release_summary: Erstes Release
|
||||
release_date: '2023-04-15'
|
||||
release_date: "2023-04-15"
|
||||
0.1.1:
|
||||
changes:
|
||||
minor_changes:
|
||||
- "update_doc hinzugef\xFCgt. um Dokumentation automatisch zu aktualisieren"
|
||||
release_summary: kleines feature update
|
||||
release_date: '2023-04-15'
|
||||
release_date: "2023-04-15"
|
||||
0.1.2:
|
||||
changes:
|
||||
release_summary: "Pfad der aufl\xF6sung f\xFCr Tests und autodoc ge\xE4ndert,
|
||||
weil Mitogen sonst blockiert"
|
||||
release_date: '2023-04-15'
|
||||
release_summary: "Pfad der aufl\xF6sung f\xFCr Tests und autodoc ge\xE4ndert, weil Mitogen sonst blockiert"
|
||||
release_date: "2023-04-15"
|
||||
0.1.3:
|
||||
changes:
|
||||
release_summary: renamed all modules to names without systemd_ prefix
|
||||
release_date: '2023-04-20'
|
||||
release_date: "2023-04-20"
|
||||
0.2.0:
|
||||
changes:
|
||||
release_summary: added an rudimentary system_service module
|
||||
release_date: '2023-04-21'
|
||||
release_date: "2023-04-21"
|
||||
0.3.0:
|
||||
changes:
|
||||
release_summary: added socket module and some small fixes
|
||||
release_date: '2023-04-23'
|
||||
release_date: "2023-04-23"
|
||||
0.3.1:
|
||||
changes:
|
||||
release_summary: fixed runtime.yml
|
||||
release_date: '2023-04-23'
|
||||
release_date: "2023-04-23"
|
||||
0.3.2:
|
||||
changes:
|
||||
release_summary: added virtualization and negative matches to link and network
|
||||
release_date: '2023-07-15'
|
||||
release_date: "2023-07-15"
|
||||
0.3.3:
|
||||
changes:
|
||||
release_summary: added netdev module
|
||||
release_date: '2023-07-16'
|
||||
release_date: "2023-07-16"
|
||||
0.3.4:
|
||||
changes:
|
||||
release_summary: moved the module_utils to an indipendent repository
|
||||
release_date: '2023-11-26'
|
||||
release_date: "2023-11-26"
|
||||
0.3.5:
|
||||
changes:
|
||||
release_summary: added some ignores and changed my name
|
||||
release_date: '2023-12-30'
|
||||
release_date: "2023-12-30"
|
||||
0.3.6:
|
||||
release_date: "2024-02-11"
|
||||
changes:
|
||||
release_summary: fixed the import of the module utils
|
||||
|
|
11
galaxy.yml
11
galaxy.yml
|
@ -1,25 +1,26 @@
|
|||
---
|
||||
namespace: sebastian
|
||||
name: systemd
|
||||
version: 0.3.5
|
||||
version: 0.3.6
|
||||
|
||||
readme: README.md
|
||||
|
||||
authors:
|
||||
- Sebastian Tobie
|
||||
description: An simple for generating systemd units with ansible
|
||||
license_file: 'LICENSE'
|
||||
license_file: "LICENSE"
|
||||
tags:
|
||||
- systemd
|
||||
- linux
|
||||
dependencies: {}
|
||||
dependencies:
|
||||
sebastian.base: ">=0.2.0"
|
||||
repository: https://gitea.sebastian-tobie.de/ansible/ansible-systemd.git
|
||||
# documentation: http://docs.example.com
|
||||
homepage: https://gitea.sebastian-tobie.de/ansible/ansible-systemd
|
||||
issues: https://gitea.sebastian-tobie.de/ansible/ansible-systemd/issues
|
||||
build_ignore:
|
||||
- '*.gz'
|
||||
- '.*'
|
||||
- "*.gz"
|
||||
- ".*"
|
||||
- Makefile
|
||||
- pyproject.toml
|
||||
- upload.sh
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_NETWORK_CONFIG, Types, modspec
|
||||
from ansible_module.module import SystemdUnitModule
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_NETWORK_CONFIG, Types, modspec
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdUnitModule
|
||||
|
||||
|
||||
class Module(SystemdUnitModule): # type: ignore
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Optional
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_SERVICE_CONFIG, Types, modspec
|
||||
from ansible_module.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_SERVICE_CONFIG, Types, modspec
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
|
||||
SYSTEMD_SERVICE_CONFIG = pathlib.Path("/etc/systemd/system")
|
||||
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Optional
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_NETWORK_CONFIG, Types, joindict, modspec, systemdbool
|
||||
from ansible_module.module import SystemdUnitModule
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_NETWORK_CONFIG, Types, joindict, modspec, systemdbool
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdUnitModule
|
||||
|
||||
kinds = (
|
||||
"bond",
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Union
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_NETWORK_CONFIG, Types, modspec, systemdbool
|
||||
from ansible_module.module import SystemdUnitModule
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_NETWORK_CONFIG, Types, modspec, systemdbool
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdUnitModule
|
||||
|
||||
|
||||
class Module(SystemdUnitModule): # type: ignore
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Union
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_SERVICE_CONFIG, Types, modspec
|
||||
from ansible_module.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_SERVICE_CONFIG, Types, modspec
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
|
||||
|
||||
@installable
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Union
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_SERVICE_CONFIG, Types
|
||||
from ansible_module.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_SERVICE_CONFIG, Types
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
|
||||
|
||||
@installable
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Union
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_SERVICE_CONFIG, Types, systemdbool
|
||||
from ansible_module.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_SERVICE_CONFIG, Types, systemdbool
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
|
||||
__module_name__ = "TargetModule"
|
||||
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
import pathlib
|
||||
from typing import List, Union
|
||||
|
||||
try:
|
||||
from ansible_module.generic import SYSTEMD_SERVICE_CONFIG, Types, modpec
|
||||
from ansible_module.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
except ImportError:
|
||||
from ansible.module_utils.sebastian.base.module_utils.generic import SYSTEMD_SERVICE_CONFIG, Types, modpec
|
||||
from ansible.module_utils.sebastian.base.module_utils.module import SystemdReloadMixin, SystemdUnitModule, installable
|
||||
|
||||
|
||||
@installable
|
||||
|
@ -11,7 +15,11 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore
|
|||
"""Creates units"""
|
||||
|
||||
name = "unit"
|
||||
module_spec = modspec(argument_spec=dict(name=Types.str(required=True, help="Name of the unit"),))
|
||||
module_spec = modspec(
|
||||
argument_spec=dict(
|
||||
name=Types.str(required=True, help="Name of the unit"),
|
||||
)
|
||||
)
|
||||
|
||||
def prepare(self):
|
||||
self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
ansible-module>=0.1.3
|
Laden…
In neuem Issue referenzieren