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 86712db..960fad3 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) '''