mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 22:00:40 +00:00
use dictsort filter in template
This commit is contained in:
parent
89a281c2ca
commit
195e683c85
@ -5,3 +5,4 @@
|
||||
* fix handling of multiline default values in template
|
||||
* FEATURE
|
||||
* use explicit marker to convert annotation values to json
|
||||
* use dictsort filter in template for ordered variable list
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% set var = role.var | default({}) %}
|
||||
{% if var %}
|
||||
* [Default Variables](#default-variables)
|
||||
{% for key, item in var.items() %}
|
||||
{% for key, item in var | dictsort %}
|
||||
* [{{ key }}](#{{ key }})
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
{% if var %}
|
||||
|
||||
## Default Variables
|
||||
{% for key, item in var.items() %}
|
||||
{% for key, item in var | dictsort %}
|
||||
|
||||
### {{ key }}
|
||||
{% if item.description is defined and item.description %}
|
||||
|
Loading…
Reference in New Issue
Block a user