From 85c975d368cbba37e20ce3a45756476f6228f7ed Mon Sep 17 00:00:00 2001 From: Alexei Znamensky Date: Wed, 3 Dec 2025 17:10:43 +1300 Subject: [PATCH] monit: deprecate support for monit <= 5.18 --- plugins/modules/monit.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/modules/monit.py b/plugins/modules/monit.py index 1ba74995e5..f26aead41e 100644 --- a/plugins/modules/monit.py +++ b/plugins/modules/monit.py @@ -40,6 +40,8 @@ options: author: - Darryl Stoflet (@dstoflet) - Simon Kelly (@snopoke) +requirements: + - Monit. Support for versions 5.18 and older is deprecated and will be removed in community.general 13.0.0. """ EXAMPLES = r""" @@ -128,6 +130,13 @@ class Monit: self._raw_version = None self._status_change_retry_count = 6 + if self.monit_version() <= (5, 18): + module.deprecate( + "Support for monit 5.18 and older is deprecated and will be removed in community.general 13.0.0.", + version="13.0.0", + collection_name="community.general", + ) + def monit_version(self): if self._monit_version is None: self._raw_version, version = self._get_monit_version()