mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 13:50:42 +00:00
add better handling of meta dependencies in templates
This commit is contained in:
parent
4252445ea2
commit
2b4de240be
@ -1,2 +1,3 @@
|
||||
* BUGFIX
|
||||
* remove only first hashtag from a multiline comment
|
||||
* add better handling of meta dependencies in templates
|
||||
|
@ -3,9 +3,13 @@
|
||||
## Dependencies
|
||||
|
||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||
{% for item in meta.dependencies.value %}
|
||||
* {{ item }}
|
||||
{% if meta.dependencies.value is mapping %}
|
||||
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
||||
{% else %}
|
||||
{% for line in meta.dependencies.value %}
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
None.
|
||||
{% endif %}
|
||||
|
@ -3,9 +3,13 @@
|
||||
## Dependencies
|
||||
|
||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||
{% for item in meta.dependencies.value %}
|
||||
* {{ item }}
|
||||
{% if meta.dependencies.value is mapping %}
|
||||
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
||||
{% else %}
|
||||
{% for line in meta.dependencies.value %}
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
None.
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user