raised the minimal version of the module
Dieser Commit ist enthalten in:
Ursprung
73889fe8ef
Commit
7c24aee1c7
|
@ -13,7 +13,7 @@ tags:
|
|||
- systemd
|
||||
- linux
|
||||
dependencies:
|
||||
sebastian.base: ">=0.4.0"
|
||||
sebastian.base: ">=0.4.3"
|
||||
repository: https://gitea.sebastian-tobie.de/ansible/ansible-systemd.git
|
||||
# documentation: http://docs.example.com
|
||||
homepage: https://gitea.sebastian-tobie.de/ansible/ansible-systemd
|
||||
|
|
|
@ -100,7 +100,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc]
|
|||
self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".service")
|
||||
self.__unit = None
|
||||
if self.get("type", "simple") != "oneshot" and len(self.get("start")) > 1:
|
||||
self.module.fail_json("only oneshot services are allowed to have multiple start commands", **self.result)
|
||||
self.fail("only oneshot services are allowed to have multiple start commands")
|
||||
|
||||
def service(self) -> str:
|
||||
params = []
|
||||
|
|
Laden…
In neuem Issue referenzieren