Debian Codegraph @

ansible_collections/community/docker/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 module util 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
13 # Standard documentation fragment
14 DOCUMENTATION = r"""
15 options: {}
16 attributes:
17 check_mode:
18 description: Can run in C(check_mode) and return changed status prediction without modifying target.
19 diff_mode:
20 description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
21 idempotent:
22 description:
23 - When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
24 - This assumes that the system controlled/queried by the module has not changed in a relevant way.
25 """
26
27 # Should be used together with the standard fragment
28 IDEMPOTENT_NOT_MODIFY_STATE = r"""
29 options: {}
30 attributes:
31 idempotent:
32 support: full
33 details:
34 - This action does not modify state.
35 """
36
37 # Should be used together with the standard fragment
38 INFO_MODULE = r"""
39 options: {}
40 attributes:
41 check_mode:
42 support: full
43 details:
44 - This action does not modify state.
45 diff_mode:
46 support: N/A
47 details:
48 - This action does not modify state.
49 """
50
51 ACTIONGROUP_DOCKER = r"""
52 options: {}
53 attributes:
54 action_group:
55 description: Use C(group/docker) or C(group/community.docker.docker) in C(module_defaults) to set defaults for this module.
56 support: full
57 membership:
58 - community.docker.docker
59 - docker
60 """
61
62 CONN = r"""
63 options: {}
64 attributes:
65 become:
66 description: Is usable alongside C(become) keywords.
67 connection:
68 description: Uses the target's configured connection information to execute code on it.
69 delegation:
70 description: Can be used in conjunction with C(delegate_to) and related keywords.
71 """
72
73 FACTS = r"""
74 options: {}
75 attributes:
76 facts:
77 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
78 """
79
80 # Should be used together with the standard fragment and the FACTS fragment
81 FACTS_MODULE = r"""
82 options: {}
83 attributes:
84 check_mode:
85 support: full
86 details:
87 - This action does not modify state.
88 diff_mode:
89 support: N/A
90 details:
91 - This action does not modify state.
92 facts:
93 support: full
94 """
95
96 FILES = r"""
97 options: {}
98 attributes:
99 safe_file_operations:
100 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
101 """
102
103 FLOW = r"""
104 options: {}
105 attributes:
106 action:
107 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
108 async:
109 description: Supports being used with the C(async) keyword.
110 """