From 2181c2b0906ba715c416065f006295d56b0e6e16 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 22 Feb 2023 13:58:29 +0000 Subject: [PATCH] [PR #5951/cb7a970f backport][stable-6] Add attributes for modules with action plugin (#6033) Add attributes for modules with action plugin (#5951) Add attributes for modules with action plugin. (cherry picked from commit cb7a970f6f3cdd77f867f54a135140399f206467) Co-authored-by: Felix Fontein --- plugins/modules/iptables_state.py | 13 ++++++++++++- plugins/modules/shutdown.py | 14 +++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/plugins/modules/iptables_state.py b/plugins/modules/iptables_state.py index 17f8d9eb70..d0ea7ad798 100644 --- a/plugins/modules/iptables_state.py +++ b/plugins/modules/iptables_state.py @@ -15,6 +15,9 @@ module: iptables_state short_description: Save iptables state into a file or restore it from a file version_added: '1.1.0' author: quidame (@quidame) +extends_documentation_fragment: + - community.general.attributes + - community.general.attributes.flow description: - C(iptables) is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. @@ -36,7 +39,15 @@ notes: still happen if it shall happen, but you will experience a connection timeout instead of more relevant info returned by the module after its failure. - - This module supports I(check_mode). +attributes: + check_mode: + support: full + diff_mode: + support: none + action: + support: full + async: + support: full options: counters: description: diff --git a/plugins/modules/shutdown.py b/plugins/modules/shutdown.py index cc4108c8a7..5d66fad16b 100644 --- a/plugins/modules/shutdown.py +++ b/plugins/modules/shutdown.py @@ -15,8 +15,20 @@ notes: - C(PATH) is ignored on the remote node when searching for the C(shutdown) command. Use I(search_paths) to specify locations to search if the default paths do not work. description: - - Shut downs a machine. + - Shut downs a machine. version_added: "1.1.0" +extends_documentation_fragment: + - community.general.attributes + - community.general.attributes.flow +attributes: + check_mode: + support: full + diff_mode: + support: none + action: + support: full + async: + support: full options: delay: description: