Debian Codegraph @

ansible_collections/community/sops/plugins/doc_fragments/attributes.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) Ansible Project
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5 # SPDX-License-Identifier: GPL-3.0-or-later
6
7 from __future__ import (absolute_import, division, print_function)
8 __metaclass__ = type
9
10
11 class ModuleDocFragment(object):
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 FACTS = r"""
52 options: {}
53 attributes:
54 facts:
55 description: Action returns an C(ansible_facts) dictionary that will update existing host facts.
56 """
57
58 # Should be used together with the standard fragment and the FACTS fragment
59 FACTS_MODULE = r'''
60 options: {}
61 attributes:
62 check_mode:
63 support: full
64 details:
65 - This action does not modify state.
66 diff_mode:
67 support: N/A
68 details:
69 - This action does not modify state.
70 facts:
71 support: full
72 '''
73
74 FILES = r"""
75 options: {}
76 attributes:
77 safe_file_operations:
78 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption.
79 """
80
81 FLOW = r"""
82 options: {}
83 attributes:
84 action:
85 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller.
86 async:
87 description: Supports being used with the C(async) keyword.
88 """