mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 13:50:42 +00:00
add example
This commit is contained in:
parent
751c8a6c07
commit
80a1b8e33a
@ -5,6 +5,9 @@
|
||||
{{ description | deep_get(meta, "description.value") }}
|
||||
{% endif %}
|
||||
|
||||
{# TOC #}
|
||||
{% include '_toc.j2' %}
|
||||
|
||||
{# Vars #}
|
||||
{% include '_vars.j2' %}
|
||||
|
||||
|
14
ansibledoctor/templates/readme/_toc.j2
Normal file
14
ansibledoctor/templates/readme/_toc.j2
Normal file
@ -0,0 +1,14 @@
|
||||
## Table of content
|
||||
|
||||
{% set var = role.var | default({}) %}
|
||||
{% if var %}
|
||||
* [Default Variables](#default-variables)
|
||||
{% for key, item in var.items() %}
|
||||
* [{{ key }}](#{{ key }})
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
* [Dependencies](#dependencies)
|
||||
* [License](#license)
|
||||
* [Author](#author)
|
||||
|
||||
---
|
@ -2,10 +2,6 @@
|
||||
{% if var %}
|
||||
## Default Variables
|
||||
{% for key, item in var.items() %}
|
||||
* [{{ key }}](#{{ key }})
|
||||
{% endfor %}
|
||||
---
|
||||
{% for key, item in var.items() %}
|
||||
|
||||
### {{ key }}
|
||||
{% if item.description is defined and item.description %}
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
Role to demonstrate ansible-doctor
|
||||
|
||||
## Default Variables
|
||||
## Table of content
|
||||
|
||||
* [Default Variables](#default-variables)
|
||||
* [demo_role_unset](#demo_role_unset)
|
||||
* [demo_role_empty](#demo_role_empty)
|
||||
* [demo_role_single](#demo_role_single)
|
||||
@ -11,7 +13,12 @@ Role to demonstrate ansible-doctor
|
||||
* [demo_role_other_tags](#demo_role_other_tags)
|
||||
* [dockerengine_packages_extra](#dockerengine_packages_extra)
|
||||
* [demo_role_undefined_var](#demo_role_undefined_var)
|
||||
* [Dependencies](#dependencies)
|
||||
* [License](#license)
|
||||
* [Author](#author)
|
||||
|
||||
---
|
||||
## Default Variables
|
||||
|
||||
### demo_role_unset
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user