Browse Source

fix: get role name from dependencies in case of a dictionary (#300)

pull/301/head v1.3.2
Robert Kaussow 1 month ago committed by GitHub
parent
commit
b6a2813114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ansibledoctor/templates/readme/_meta.j2
  2. 5
      example/README.md
  3. 4
      example/demo-role/meta/main.yml

4
ansibledoctor/templates/readme/_meta.j2

@ -9,7 +9,9 @@
{% set deps = meta.dependencies.value %}
{% endif %}
{% for item in deps %}
- {{ item }}
{% if item is string or item.role %}
- {{ item if item is string else item.role }}
{% endif %}
{% endfor %}
{% else %}
None.

5
example/README.md

@ -153,6 +153,8 @@ demo_role_unset: some_value
## Discovered Tags
**_role-tag1_**
**_role-tag2_**
**_single-tag_**\
@ -167,7 +169,8 @@ demo_role_unset: some_value
## Dependencies
None.
- role1
- role2
## License

4
example/demo-role/meta/main.yml

@ -16,4 +16,6 @@ galaxy_info:
galaxy_tags:
- demo
- documentation
dependencies: []
dependencies:
- role1
- role: role2

Loading…
Cancel
Save