Debian Codegraph @

ansible_collections/community/general/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: Returns details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
20 """
21
22 PLATFORM = r"""
23 options: {}
24 attributes:
25 platform:
26 description: Target OS/families that can be operated against.
27 support: N/A
28 """
29
30 # Should be used together with the standard fragment
31 INFO_MODULE = r"""
32 options: {}
33 attributes:
34 check_mode:
35 support: full
36 details:
37 - This action does not modify state.
38 diff_mode:
39 support: N/A
40 details:
41 - This action does not modify state.
42 """
43
44 CONN = r"""
45 options: {}
46 attributes:
47 become:
48 description: Is usable alongside C(become) keywords.
49 connection:
50 description: Uses the target's configured connection information to execute code on it.
51 delegation:
52 description: Can be used in conjunction with C(delegate_to) and related keywords.
53 """
54
55 FACTS = r"""
56 options: {}
57 attributes:
58 facts:
59 description: Action returns an C(ansible_facts) dictionary that updates existing host facts.
60 """
61
62 # Should be used together with the standard fragment and the FACTS fragment
63 FACTS_MODULE = r"""
64 options: {}
65 attributes:
66 check_mode:
67 support: full
68 details:
69 - This action does not modify state.
70 diff_mode:
71 support: N/A
72 details:
73 - This action does not modify state.
74 facts:
75 support: full
76 """
77
78 FILES = r"""
79 options: {}
80 attributes:
81 safe_file_operations:
82 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
83 """
84
85 FLOW = r"""
86 options: {}
87 attributes:
88 action:
89 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
90 async:
91 description: Supports being used with the C(async) keyword.
92 """