1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
#!/usr/bin/python
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
module: semantic_markup
short_description: Test semantic markup
description:
- Test semantic markup.
- RV(does.not.exist=true).
author:
- Ansible Core Team
options:
foo:
description:
- Test.
type: str
a1:
description:
- O(foo)
- O(foo=bar)
- O(foo[1]=bar)
- O(ignore:bar=baz)
- O(ansible.builtin.copy#module:path=/)
- V(foo)
- V(bar(1\\2\)3)
- V(C(foo\)).
- E(env(var\))
- RV(ansible.builtin.copy#module:backup)
- RV(bar=baz)
- RV(ignore:bam)
- RV(ignore:bam.bar=baz)
- RV(bar).
- P(ansible.builtin.file#lookup)
type: str
a2:
description: V(C\(foo\)).
type: str
a3:
description: RV(bam).
type: str
a4:
description: P(foo.bar#baz).
type: str
a5:
description: P(foo.bar.baz).
type: str
a6:
description: P(foo.bar.baz#woof).
type: str
a7:
description: E(foo\(bar).
type: str
a8:
description: O(bar).
type: str
a9:
description: O(bar=bam).
type: str
a10:
description: O(foo.bar=1).
type: str
a11:
description: Something with suboptions.
type: dict
suboptions:
b1:
description:
- V(C\(foo\)).
- RV(bam).
- P(foo.bar#baz).
- P(foo.bar.baz).
- P(foo.bar.baz#woof).
- E(foo\(bar).
- O(bar).
- O(bar=bam).
- O(foo.bar=1).
type: str
'''
EXAMPLES = '''#'''
RETURN = r'''
bar:
description: Bar.
type: int
returned: success
sample: 5
'''
from ansible.module_utils.basic import AnsibleModule
if __name__ == '__main__':
module = AnsibleModule(argument_spec=dict(
foo=dict(),
a1=dict(),
a2=dict(),
a3=dict(),
a4=dict(),
a5=dict(),
a6=dict(),
a7=dict(),
a8=dict(),
a9=dict(),
a10=dict(),
a11=dict(type='dict', options=dict(
b1=dict(),
))
))
module.exit_json()
|