Debian Codegraph @

lib/ansible/plugins/doc_fragments/action_common_attributes.py

raw
1 # -*- coding: utf-8 -*-
2 # Copyright: Ansible Project
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4 from __future__ import annotations
5
6
7 class ModuleDocFragment(object):
8
9 # Standard documentation fragment
10 DOCUMENTATION = r"""
11 attributes:
12 check_mode:
13 description: Can run in check_mode and return changed status prediction without modifying target, if not supported the action will be skipped.
14 diff_mode:
15 description: Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode
16 platform:
17 description: Target OS/families that can be operated against
18 support: N/A
19 """
20
21 ACTIONGROUPS = r"""
22 attributes:
23 action_group:
24 description: Action is part of action_group(s), for convenient setting of module_defaults.
25 support: N/A
26 membership: []
27 """
28
29 CONN = r"""
30 attributes:
31 become:
32 description: Is usable alongside become keywords
33 connection:
34 description: Uses the target's configured connection information to execute code on it
35 delegation:
36 description: Can be used in conjunction with delegate_to and related keywords
37 """
38
39 FACTS = r"""
40 attributes:
41 facts:
42 description: Action returns an C(ansible_facts) dictionary that will update existing host facts
43 """
44
45 FILES = r"""
46 attributes:
47 safe_file_operations:
48 description: Uses Ansible's strict file operation functions to ensure proper permissions and avoid data corruption
49 vault:
50 description: Can automatically decrypt Ansible vaulted files
51 """
52
53 FLOW = r"""
54 attributes:
55 action:
56 description: Indicates this has a corresponding action plugin so some parts of the options can be executed on the controller
57 async:
58 description: Supports being used with the C(async) keyword
59 bypass_host_loop:
60 description:
61 - Forces a 'global' task that does not execute per host, this bypasses per host templating and serial,
62 throttle and other loop considerations
63 - Conditionals will work as if C(run_once) is being used, variables used will be from the first available host
64 - This action will not work normally outside of lockstep strategies
65 """
66 RAW = r"""
67 attributes:
68 raw:
69 description: Indicates if an action takes a 'raw' or 'free form' string as an option and has it's own special parsing of it
70 """