From 3888436ad469b14cfe3161c1977b5e8e1c5f9e37 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 23 Apr 2023 09:29:04 +0200 Subject: [PATCH] added unitfile as an result --- plugins/module_utils/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/module_utils/module.py b/plugins/module_utils/module.py index 3a4f7d0..352189e 100644 --- a/plugins/module_utils/module.py +++ b/plugins/module_utils/module.py @@ -289,6 +289,7 @@ class SystemdUnitModule(AnsibleModule): self.diff(diff) def check(self): + self.set("unitfile", self.unitfile.as_posix()) self.unitfile_gen() if not self.unitfile.exists(): self.diff(before="", after=self.unit(), before_header=self.unitfile.as_posix())