Debian Codegraph @

ansible_collections/community/crypto/plugins/doc_fragments/_attributes.py

raw
1 # Copyright (c) Ansible Project
2 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 # Standard documentation fragment
13 DOCUMENTATION = r"""
14 options: {}
15 attributes:
16 check_mode:
17 description: Can run in C(check_mode) and return changed status prediction without modifying target.
18 diff_mode:
19 description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
20 idempotent:
21 description:
22 - When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
23 - This assumes that the system controlled/queried by the module has not changed in a relevant way.
24 """
25
26 # Should be used together with the standard fragment
27 IDEMPOTENT_NOT_MODIFY_STATE = r"""
28 options: {}
29 attributes:
30 idempotent:
31 support: full
32 details:
33 - This action does not modify state.
34 """
35
36 # Should be used together with the standard fragment
37 INFO_MODULE = r"""
38 options: {}
39 attributes:
40 check_mode:
41 support: full
42 details:
43 - This action does not modify state.
44 diff_mode:
45 support: N/A
46 details:
47 - This action does not modify state.
48 """
49
50 ACTIONGROUP_ACME = r"""
51 options: {}
52 attributes:
53 action_group:
54 description: Use C(group/acme) or C(group/community.crypto.acme) in C(module_defaults) to set defaults for this module.
55 support: full
56 membership:
57 - community.crypto.acme
58 - acme
59 """
60
61 FACTS = r"""
62 options: {}
63 attributes:
64 facts:
65 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
66 """
67
68 # Should be used together with the standard fragment and the FACTS fragment
69 FACTS_MODULE = r"""
70 options: {}
71 attributes:
72 check_mode:
73 support: full
74 details:
75 - This action does not modify state.
76 diff_mode:
77 support: N/A
78 details:
79 - This action does not modify state.
80 facts:
81 support: full
82 """
83
84 FILES = r"""
85 options: {}
86 attributes:
87 safe_file_operations:
88 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
89 """
90
91 FLOW = r"""
92 options: {}
93 attributes:
94 action:
95 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
96 async:
97 description: Supports being used with the C(async) keyword.
98 """