mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-28 15:50:35 +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
|
* fix handling of multiline default values in template
|
||||||
* FEATURE
|
* FEATURE
|
||||||
* use explicit marker to convert annotation values to json
|
* 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({}) %}
|
{% set var = role.var | default({}) %}
|
||||||
{% if var %}
|
{% if var %}
|
||||||
* [Default Variables](#default-variables)
|
* [Default Variables](#default-variables)
|
||||||
{% for key, item in var.items() %}
|
{% for key, item in var | dictsort %}
|
||||||
* [{{ key }}](#{{ key }})
|
* [{{ key }}](#{{ key }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{% if var %}
|
{% if var %}
|
||||||
|
|
||||||
## Default Variables
|
## Default Variables
|
||||||
{% for key, item in var.items() %}
|
{% for key, item in var | dictsort %}
|
||||||
|
|
||||||
### {{ key }}
|
### {{ key }}
|
||||||
{% if item.description is defined and item.description %}
|
{% if item.description is defined and item.description %}
|
||||||
|
Loading…
Reference in New Issue
Block a user