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

29 lines
582 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 %}
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
{% else %}
{% for line in meta.dependencies.value %}
{{ line }}
2019-10-08 09:30:31 +00:00
{% endfor %}
{% endif %}
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 %}