Skip to content

Commit

Permalink
[PR #5951/cb7a970f backport][stable-6] Add attributes for modules wit…
Browse files Browse the repository at this point in the history
…h action plugin (#6033)

Add attributes for modules with action plugin (#5951)

Add attributes for modules with action plugin.

(cherry picked from commit cb7a970)

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
patchback[bot] and felixfontein authored Feb 22, 2023
1 parent 0c295d4 commit 2181c2b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
13 changes: 12 additions & 1 deletion plugins/modules/iptables_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
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.
Expand All @@ -36,7 +39,15 @@
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:
Expand Down
14 changes: 13 additions & 1 deletion plugins/modules/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,20 @@
- 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:
Expand Down

0 comments on commit 2181c2b

Please sign in to comment.