-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aar-doc.yml
98 lines (75 loc) · 2.29 KB
/
.aar-doc.yml
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
---
output_file: README.md
output_mode: replace
output_template: |
<!-- BEGIN_ANSIBLE_DOCS -->
# {{ role }}
{{ metadata.galaxy_info.description }}
## Supported Operating Systems
- Debian 12
- Ubuntu 24.04, 22.04
- FreeBSD [Proserver](https://infrastructure.punkt.de/de/produkte/proserver.html)
## Role Arguments
{% for entrypoint in argument_specs.keys() %}
{% if "description" in argument_specs[entrypoint] %}
{%- if argument_specs[entrypoint].description is string -%}
{{ argument_specs[entrypoint].description }}
{% else %}
{%- for line in argument_specs[entrypoint].description -%}
{{ line }}
{% endfor -%}
{% endif -%}
{% endif -%}
{% if entrypoint_options[entrypoint] | length > 1 -%}
{% for path, options in entrypoint_options[entrypoint][1:] -%}
#### Options for `{{ path | reject('eq', 'main') | join(".") }}`
|Option|Description|Type|Required|Default|
|---|---|---|---|---|
{%- for name, details in options.items() %}
| `{{ name }}` | {{ details.display_description }} | {{ details.display_type }} | {{ details.display_required }} | {{ details.display_default }} |
{%- endfor %}
{% endfor -%}
{% endif -%}
{% if entrypoint in entrypoint_choices -%}
{% for path, choices in entrypoint_choices[entrypoint] -%}
#### Choices for {{ path | join(" > ") }}
|Choice|
|---|
{%- for item in choices %}
| {{ item }} |
{%- endfor %}
{% endfor -%}
{% endif -%}
{% else -%}
This entrypoint has no options.
{% endfor -%}
## Dependencies
{%- if ("dependencies" in metadata) and (metadata.dependencies | length > 0) %}
{%- for dependency in metadata.dependencies %}
{%- if dependency.src %}
- [{{ dependency.role }}]({{ dependency.src }})
{%- else %}
- {{ dependency.role }}
{%- endif %}
{%- if dependency.when %}
- **Condition**: `{{ dependency.when }}`
{%- endif %}
{%- endfor %}
{%- else %}
None.
{%- endif %}
## Installation
Add this role to the requirements.yml of your playbook as follows:
```yaml
roles:
- name: {{ role }}
src: https://github.com/punktDe/ansible-wireguard
```
Afterwards, install the role by running `ansible-galaxy install -r requirements.yml`
## Example Playbook
```yaml
- hosts: all
roles:
- name: wireguard
```
<!-- END_ANSIBLE_DOCS -->