mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 13:50:42 +00:00
feat: add role requirements to templates (#463)
This commit is contained in:
parent
d47427e128
commit
26d7a3cb8d
8
ansibledoctor/templates/hugo-book/_requirements.j2
Normal file
8
ansibledoctor/templates/hugo-book/_requirements.j2
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
## Requirements
|
||||
|
||||
{% if meta | deep_get(meta, "min_ansible_version.value") %}
|
||||
- Minimum Ansible version: `{{ meta.min_ansible_version.value }}`
|
||||
{% else %}
|
||||
None.
|
||||
{% endif %}
|
@ -1,3 +1,4 @@
|
||||
- [Requirements](#requirements)
|
||||
{% set var = role.var | default({}) %}
|
||||
{% if var %}
|
||||
- [Default Variables](#default-variables)
|
||||
|
@ -19,6 +19,9 @@ summary: {{ meta.summary.value | safe_join(" ") }}
|
||||
{# TOC #}
|
||||
{% include '_toc.j2' %}
|
||||
|
||||
{# Requirements #}
|
||||
{% include '_requirements.j2' %}
|
||||
|
||||
{# Vars #}
|
||||
{% include '_vars.j2' %}
|
||||
|
||||
|
@ -11,6 +11,9 @@
|
||||
{# TOC #}
|
||||
{% include '_toc.j2' %}
|
||||
|
||||
{# Requirements #}
|
||||
{% include '_requirements.j2' %}
|
||||
|
||||
{# Vars #}
|
||||
{% include '_vars.j2' %}
|
||||
|
||||
|
8
ansibledoctor/templates/readme/_requirements.j2
Normal file
8
ansibledoctor/templates/readme/_requirements.j2
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
## Requirements
|
||||
|
||||
{% if meta | deep_get(meta, "min_ansible_version.value") %}
|
||||
- Minimum Ansible version: `{{ meta.min_ansible_version.value }}`
|
||||
{% else %}
|
||||
None.
|
||||
{% endif %}
|
@ -1,5 +1,6 @@
|
||||
## Table of content
|
||||
|
||||
- [Requirements](#requirements)
|
||||
{% set var = role.var | default({}) %}
|
||||
{% if var %}
|
||||
- [Default Variables](#default-variables)
|
||||
|
Loading…
Reference in New Issue
Block a user