mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 12:50:43 +00:00
use for loop instead of jinja filter
This commit is contained in:
parent
1cddb441a6
commit
8504e7f349
@ -4,10 +4,13 @@
|
|||||||
|
|
||||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||||
{% if meta.dependencies.value is mapping %}
|
{% if meta.dependencies.value is mapping %}
|
||||||
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
{% set deps = meta.dependencies.value.dependencies %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ meta.dependencies.value | to_nice_yaml(indent=0) }}
|
{% set deps = meta.dependencies.value %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for item in deps %}
|
||||||
|
* {{ item }}
|
||||||
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
None.
|
None.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -4,10 +4,13 @@
|
|||||||
|
|
||||||
{% if meta | deep_get(meta, "dependencies.value") %}
|
{% if meta | deep_get(meta, "dependencies.value") %}
|
||||||
{% if meta.dependencies.value is mapping %}
|
{% if meta.dependencies.value is mapping %}
|
||||||
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }}
|
{% set deps = meta.dependencies.value.dependencies %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ meta.dependencies.value | to_nice_yaml(indent=0) }}
|
{% set deps = meta.dependencies.value %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for item in deps %}
|
||||||
|
* {{ item }}
|
||||||
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
None.
|
None.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user