diff --git a/galaxy.yml b/galaxy.yml index 64bea05..d7c5b2a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -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 diff --git a/plugins/modules/system_service.py b/plugins/modules/system_service.py index 1a29a60..aedcc59 100644 --- a/plugins/modules/system_service.py +++ b/plugins/modules/system_service.py @@ -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 = []