ansible-doctor/ansibledoctor/templates/hugo-book/_meta.j2

18 lines
377 B
Plaintext
Raw Normal View History

2019-11-26 15:40:55 +00:00
{% set meta = role.meta | default({}) %}
{% if meta %}
## Dependencies
{% if meta | deep_get(meta, "dependencies.value") %}
{% if meta.dependencies.value is mapping %}
2020-03-08 21:15:59 +00:00
{% set deps = meta.dependencies.value.dependencies %}
{% else %}
2020-03-08 21:15:59 +00:00
{% set deps = meta.dependencies.value %}
{% endif %}
2020-03-08 21:15:59 +00:00
{% for item in deps %}
- {{ item }}
2020-03-08 21:15:59 +00:00
{% endfor %}
2019-11-26 15:40:55 +00:00
{% else %}
None.
{% endif %}
{% endif %}