Debian Codegraph @

lib/ansible/plugins/doc_fragments/action_core.py

raw
1 # -*- coding: utf-8 -*-
2 # Copyright: (c) , 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 # WARNING: this is mostly here as a convenience for documenting core behaviours, no plugin outside of ansible-core should use this file
8 class ModuleDocFragment(object):
9
10 # requires action_common
11 DOCUMENTATION = r"""
12 attributes:
13 async:
14 support: none
15 become:
16 support: none
17 bypass_task_loop:
18 description: These tasks ignore the C(loop) and C(with_) keywords
19 core:
20 description: This is a 'core engine' feature and is not implemented like most task actions, so it is not overridable in any way via the plugin system.
21 support: full
22 connection:
23 support: none
24 ignore_conditional:
25 support: none
26 description: The action is not subject to conditional execution so it will ignore the C(when:) keyword
27 platform:
28 support: full
29 platforms: all
30 until:
31 description: Denotes if this action obeys until/retry/poll keywords
32 support: none
33 tags:
34 description: Allows for the 'tags' keyword to control the selection of this action for execution
35 support: full
36 """
37
38 # also requires core above
39 IMPORT = r"""
40 attributes:
41 action:
42 details: While this action executes locally on the controller it is not governed by an action plugin
43 support: none
44 bypass_host_loop:
45 details: While the import can be host specific and runs per host it is not dealing with all available host variables,
46 use an include instead for those cases
47 support: partial
48 bypass_task_loop:
49 details: The task itself is not looped, but the loop is applied to each imported task
50 support: partial
51 delegation:
52 details: Since there are no connection nor facts, there is no sense in delegating imports
53 support: none
54 ignore_conditional:
55 details: While the action itself will ignore the conditional, it will be inherited by the imported tasks themselves
56 support: partial
57 tags:
58 details: Tags are not interpreted for this action, they are applied to the imported tasks
59 support: none
60 until:
61 support: none
62 """
63 # also requires core above
64 INCLUDE = r"""
65 attributes:
66 action:
67 details: While this action executes locally on the controller it is not governed by an action plugin
68 support: none
69 bypass_host_loop:
70 support: none
71 bypass_task_loop:
72 support: none
73 delegation:
74 details: Since there are no connection nor facts, there is no sense in delegating includes
75 support: none
76 tags:
77 details: Tags are interpreted by this action but are not automatically inherited by the include tasks, see C(apply)
78 support: partial
79 """