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

30 lines
592 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 %}
* {{ item }}
{% endfor %}
2019-10-08 09:30:31 +00:00
{% else %}
None.
{% endif %}
{% if license | deep_get(meta, "license.value") %}
## License
{{ meta.license.value }}
{% endif %}
{% if author | deep_get(meta, "author.value") %}
## Author
2019-11-07 08:10:20 +00:00
{{ meta.author.value | save_join(" ") }}
2019-10-08 09:30:31 +00:00
{% endif %}
{% endif %}