diff --git a/plugins/modules/socket.py b/plugins/modules/socket.py index 8ad9263..a479537 100644 --- a/plugins/modules/socket.py +++ b/plugins/modules/socket.py @@ -41,6 +41,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore ), required_one_of=(("stream", "datagram", "sequential", "fifo"),), ) + restartable = False def prepare(self): self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".socket") diff --git a/plugins/modules/target.py b/plugins/modules/target.py index 8e275ce..6372383 100644 --- a/plugins/modules/target.py +++ b/plugins/modules/target.py @@ -27,6 +27,7 @@ class TargetModule(SystemdUnitModule, SystemdReloadMixin): ), ), ) + restartable = False def prepare(self): self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".target")