ansible-doctor/ansibledoctor/templates/readme/_meta.j2

32 lines
691 B
Plaintext
Raw Normal View History

2019-10-08 09:30:31 +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 %}
{% if item is string or item.role %}
- {{ item if item is string else item.role }}
{% endif %}
2020-03-08 21:15:59 +00:00
{% endfor %}
2019-10-08 09:30:31 +00:00
{% else %}
None.
{% endif %}
{% if license | deep_get(meta, "license.value") %}
## License
{{ meta.license.value | safe_join(" ") }}
2019-10-08 09:30:31 +00:00
{% endif %}
{% if author | deep_get(meta, "author.value") %}
## Author
{{ meta.author.value | safe_join(" ") }}
2019-10-08 09:30:31 +00:00
{% endif %}
{% endif %}