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())