From 955acdca44e60ace56c4dbe83f4b5af58bf9f317 Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Wed, 27 May 2026 14:18:58 +0900 Subject: [PATCH] docs: added attributes metadata for check_mode support (fixes #643) (#741) (#747) (cherry picked from commit 9cd0a1f0ef30f2fc1bbe03bfeef29f88715e78c8) Co-authored-by: Patrick Kingston <66141901+pkingstonxyz@users.noreply.github.com> Co-authored-by: jkhall81 --- changelogs/fragments/643-sysctl-docs.yml | 3 +++ plugins/modules/sysctl.py | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 changelogs/fragments/643-sysctl-docs.yml diff --git a/changelogs/fragments/643-sysctl-docs.yml b/changelogs/fragments/643-sysctl-docs.yml new file mode 100644 index 0000000..54ffa75 --- /dev/null +++ b/changelogs/fragments/643-sysctl-docs.yml @@ -0,0 +1,3 @@ +--- +trivial: + - sysctl - added the attributes section to the module documentation to reflect check_mode support (https://github.com/ansible-collections/ansible.posix/issues/643). diff --git a/plugins/modules/sysctl.py b/plugins/modules/sysctl.py index 28c6a52..ede962b 100644 --- a/plugins/modules/sysctl.py +++ b/plugins/modules/sysctl.py @@ -56,6 +56,17 @@ options: - Verify token value with the sysctl command and set with C(-w) if necessary. type: bool default: false +attributes: + check_mode: + support: full + description: Can run in check_mode and return changed status prediction without modifying target. + diff_mode: + support: none + description: Does not support differences output. + platform: + platforms: posix + support: full + description: Supported on POSIX-compliant systems. author: - David CHANIAL (@davixx) '''