mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-21 01:25:49 +02:00
Add 'idempotent' attribute (#337)
* Add 'idempotent' attribute. * Mention check mode in attribute description. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
2a3460827d
commit
44e6bb6f7a
8 changed files with 29 additions and 0 deletions
|
@ -21,6 +21,20 @@ attributes:
|
||||||
platform:
|
platform:
|
||||||
description: Target OS/families that can be operated against.
|
description: Target OS/families that can be operated against.
|
||||||
support: N/A
|
support: N/A
|
||||||
|
idempotent:
|
||||||
|
description:
|
||||||
|
- When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
|
||||||
|
- This assumes that the system controlled/queried by the module has not changed in a relevant way.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Should be used together with the standard fragment
|
||||||
|
IDEMPOTENT_NOT_MODIFY_STATE = r"""
|
||||||
|
options: {}
|
||||||
|
attributes:
|
||||||
|
idempotent:
|
||||||
|
support: full
|
||||||
|
details:
|
||||||
|
- This action does not modify state.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Should be used together with the standard fragment
|
# Should be used together with the standard fragment
|
||||||
|
|
|
@ -33,6 +33,10 @@ attributes:
|
||||||
platforms: RouterOS
|
platforms: RouterOS
|
||||||
action_group:
|
action_group:
|
||||||
version_added: 2.1.0
|
version_added: 2.1.0
|
||||||
|
idempotent:
|
||||||
|
support: N/A
|
||||||
|
details:
|
||||||
|
- Whether the executed command is idempotent depends on the operation performed.
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -29,6 +29,7 @@ extends_documentation_fragment:
|
||||||
- community.routeros.attributes.actiongroup_api
|
- community.routeros.attributes.actiongroup_api
|
||||||
- community.routeros.attributes.facts
|
- community.routeros.attributes.facts
|
||||||
- community.routeros.attributes.facts_module
|
- community.routeros.attributes.facts_module
|
||||||
|
- community.routeros.attributes.idempotent_not_modify_state
|
||||||
attributes:
|
attributes:
|
||||||
platform:
|
platform:
|
||||||
support: full
|
support: full
|
||||||
|
|
|
@ -35,6 +35,8 @@ attributes:
|
||||||
platform:
|
platform:
|
||||||
support: full
|
support: full
|
||||||
platforms: RouterOS
|
platforms: RouterOS
|
||||||
|
idempotent:
|
||||||
|
support: full
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -28,6 +28,7 @@ extends_documentation_fragment:
|
||||||
- community.routeros.api.restrict
|
- community.routeros.api.restrict
|
||||||
- community.routeros.attributes
|
- community.routeros.attributes
|
||||||
- community.routeros.attributes.actiongroup_api
|
- community.routeros.attributes.actiongroup_api
|
||||||
|
- community.routeros.attributes.idempotent_not_modify_state
|
||||||
- community.routeros.attributes.info_module
|
- community.routeros.attributes.info_module
|
||||||
attributes:
|
attributes:
|
||||||
platform:
|
platform:
|
||||||
|
|
|
@ -42,6 +42,8 @@ attributes:
|
||||||
platform:
|
platform:
|
||||||
support: full
|
support: full
|
||||||
platforms: RouterOS
|
platforms: RouterOS
|
||||||
|
idempotent:
|
||||||
|
support: full
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -29,6 +29,10 @@ attributes:
|
||||||
platform:
|
platform:
|
||||||
support: full
|
support: full
|
||||||
platforms: RouterOS
|
platforms: RouterOS
|
||||||
|
idempotent:
|
||||||
|
support: N/A
|
||||||
|
details:
|
||||||
|
- Whether the executed command is idempotent depends on the command.
|
||||||
options:
|
options:
|
||||||
commands:
|
commands:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -19,6 +19,7 @@ extends_documentation_fragment:
|
||||||
- community.routeros.attributes
|
- community.routeros.attributes
|
||||||
- community.routeros.attributes.facts
|
- community.routeros.attributes.facts
|
||||||
- community.routeros.attributes.facts_module
|
- community.routeros.attributes.facts_module
|
||||||
|
- community.routeros.attributes.idempotent_not_modify_state
|
||||||
attributes:
|
attributes:
|
||||||
platform:
|
platform:
|
||||||
support: full
|
support: full
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue