mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-05 12:50:44 +00:00
32 lines
691 B
Django/Jinja
32 lines
691 B
Django/Jinja
{% set meta = role.meta | default({}) %}
|
|
{% if meta %}
|
|
## Dependencies
|
|
|
|
{% if meta | deep_get(meta, "dependencies.value") %}
|
|
{% if meta.dependencies.value is mapping %}
|
|
{% set deps = meta.dependencies.value.dependencies %}
|
|
{% else %}
|
|
{% set deps = meta.dependencies.value %}
|
|
{% endif %}
|
|
{% for item in deps %}
|
|
{% if item is string or item.role %}
|
|
- {{ item if item is string else item.role }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
None.
|
|
{% endif %}
|
|
{% if license | deep_get(meta, "license.value") %}
|
|
|
|
## License
|
|
|
|
{{ meta.license.value | safe_join(" ") }}
|
|
{% endif %}
|
|
{% if author | deep_get(meta, "author.value") %}
|
|
|
|
## Author
|
|
|
|
{{ meta.author.value | safe_join(" ") }}
|
|
{% endif %}
|
|
{% endif %}
|