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
|
* BUGFIX
|
||||||
* remove only first hashtag from a multiline comment
|
* remove only first hashtag from a multiline comment
|
||||||
|
* add better handling of meta dependencies in templates
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||||
{% for item in meta.dependencies.value %}
|
{% if meta.dependencies.value is mapping %}
|
||||||
* {{ item }}
|
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
||||||
|
{% else %}
|
||||||
|
{% for line in meta.dependencies.value %}
|
||||||
|
{{ line }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
None.
|
None.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -3,9 +3,13 @@
|
|||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||||
{% for item in meta.dependencies.value %}
|
{% if meta.dependencies.value is mapping %}
|
||||||
* {{ item }}
|
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
||||||
|
{% else %}
|
||||||
|
{% for line in meta.dependencies.value %}
|
||||||
|
{{ line }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
None.
|
None.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user