diff --git a/plugins/modules/target.py b/plugins/modules/target.py index 3461ef7..280f37f 100644 --- a/plugins/modules/target.py +++ b/plugins/modules/target.py @@ -25,6 +25,7 @@ class Module(SystemdUnitModule): def prepare(self): self.unitfile = (SYSTEMD_SERVICE_CONFIG/ self.get("name")).with_stem(".target") + self.set("name", self.get(name)) self.__unit = None def header(self) -> str: