sorting results

This commit is contained in:
ipvsean
2020-03-09 15:57:11 -04:00
parent c091c76c3d
commit daa1ee863e
2 changed files with 29 additions and 29 deletions

View File

@@ -27,7 +27,7 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
<th>Workshop Types</th>
</tr>
{% for key, value in hostvars[inventory_hostname].items()|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined') %}
{% for key, value in hostvars[inventory_hostname].items()|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined')|sort(attribute='1.name') %}
<tr>
<td>{{value.name}}</td>
<td>{{value.author}}</td>