@@ -1,66 +1,67 @@
-## {{ galaxy_name }}
+{%- set author = authors | first -%}
 
-{% if meta_info.travis is defined and meta_info.travis %}[![Travis CI](https://secure.travis-ci.org/{{ github_username + '/' + repo_name }}.png)](http://travis-ci.org/{{ github_username + '/' + repo_name }}) [![test-suite](http://img.shields.io/badge/test--suite-{{ repo_name | replace("-","--") | replace("_","__") }}-blue.svg)](https://github.com/{{ github_username }}/test-suite/tree/master/{{ repo_name }}/){% endif %}{% if meta_info.galaxy_id is defined and meta_info.galaxy_id %}{% if meta_info.travis is defined and meta_info.travis %} {% endif %}[![Ansible Galaxy](http://img.shields.io/badge/galaxy-{{ galaxy_name | replace("_","__") }}-660198.svg)](https://galaxy.ansible.com/list#/roles/{{ meta_info.galaxy_id }}){% endif %}{% if (meta_info.travis is defined and meta_info.travis) or (meta_info.galaxy_id is defined and meta_info.galaxy_id) %} {% endif %}[![Platforms](http://img.shields.io/badge/platforms-{{ galaxy_info.platforms | map(attribute='name') | sort | join('%20|%20') | lower }}-lightgrey.svg)](#)
-{% if meta_info.beta is defined and meta_info.beta %}
+## {{ role.name }}
+
+{% if ansigenome_info.travis is defined and ansigenome_info.travis %}[![Travis CI](https://secure.travis-ci.org/{{ scm.user + '/' + role.slug }}.png)](http://travis-ci.org/{{ scm.user + '/' + role.slug }}) [![test-suite](http://img.shields.io/badge/test--suite-{{ scm.repo_prefix | replace("-","--") | replace("_","__") + role.name | replace("-","--") | replace("_","__") }}-blue.svg)](https://github.com/{{ scm.user }}/test-suite/tree/master/{{ scm.repo_prefix + role.name }}/){% endif %} {% if ansigenome_info.galaxy_id is defined and ansigenome_info.galaxy_id %}[![Ansible Galaxy](http://img.shields.io/badge/galaxy-{{ role.galaxy_name | replace("-","--") | replace("_","__") }}-660198.svg)](https://galaxy.ansible.com/list#/roles/{{ ansigenome_info.galaxy_id }}){% endif %}{% if galaxy_info.platforms is defined and galaxy_info.platforms %}[![Platforms](http://img.shields.io/badge/platforms-{{ galaxy_info.platforms | map(attribute='name') | sort | join('%20|%20') | lower }}-lightgrey.svg)](#){% endif %}
+{% if ansigenome_info.beta is defined and ansigenome_info.beta %}
 ### Warning, this is a BETA role
 
 This role has been marked by the author as a beta role, which means that it
 might be significantly changed in the future. Be careful while using this role
 in a production environment.
 
-***{% endif %}{% if meta_info.synopsis is defined %}
-{{ meta_info.synopsis | trim }}{% endif %}
+***{% endif %}{% if ansigenome_info.synopsis is defined %}
+{{ ansigenome_info.synopsis | trim }}{% endif %}
 
+{% if ansigenome_info.galaxy_id is defined and ansigenome_info.galaxy_id %}
 ### Installation
 
-To install `{{ galaxy_name }}` using Ansible Galaxy, run:
+This role requires at least Ansible{% if galaxy_info.min_ansible_version is defined and galaxy_info.min_ansible_version %} `v{{ galaxy_info.min_ansible_version }}`{% endif %}. To install it, run:
+
+    ansible-galaxy install {{ role.galaxy_name }}
 
-    ansible-galaxy install {{ galaxy_name }}
-{% if meta_info.quick_start is defined and meta_info.quick_start %}
+{% endif %}
+{% if ansigenome_info.quick_start is defined and ansigenome_info.quick_start %}
 
 ### Quick start
 
-{{ meta_info.quick_start | trim | indent(4, true) }}{% endif %}
+{{ ansigenome_info.quick_start | trim | indent(4, true) }}{% endif %}
 {% if dependencies is defined and dependencies -%}
 
 ### Role dependencies
 {% for dependency in dependencies %}
 - `{{ dependency.role | trim }}`{% endfor %}
 {% endif %}
-{% if meta_info.defaults is defined and meta_info.defaults %}
+{% if ansigenome_info.defaults is defined and ansigenome_info.defaults %}
 
 ### Role variables
 
 List of default variables available in the inventory:
 
-{{ meta_info.defaults | trim | indent(4, true) }}
+{{ ansigenome_info.defaults | trim | indent(4, true) }}
 {% endif %}
-{% if meta_info.facts is defined and meta_info.facts %}
+{% if ansigenome_info.facts is defined and ansigenome_info.facts %}
 
 List of internal variables used by the role:
 
-{{ meta_info.facts | trim | indent(4, true) }}{% endif %}
-{% if meta_info.usage is defined and meta_info.usage %}
+{{ ansigenome_info.facts | trim | indent(4, true) }}{% endif %}
+{% if ansigenome_info.usage is defined and ansigenome_info.usage %}
 
 ### Detailed usage guide
 
-{{ meta_info.usage | trim }}{% endif %}
-{% if meta_info.custom is defined and meta_info.custom %}
+{{ ansigenome_info.usage | trim }}{% endif %}
+{% if ansigenome_info.custom is defined and ansigenome_info.custom %}
 
-{{ meta_info.custom | trim }}{% endif %}
-{% if meta_info.authors is defined and meta_info.authors %}
+{{ ansigenome_info.custom | trim }}{% endif %}
 ### Authors and license
 
-`{{ galaxy_name }}` role was written by:
-{% for credit in meta_info.authors %}
-- {% if credit.url is defined and credit.url %}[{% endif %}{{ credit.name }}{% if credit.url is defined and credit.url %}]({{ credit.url }}){% endif %}{% if credit.email is defined and credit.email %} - [e-mail](mailto:{{ credit.email }}){% endif %}{% if credit.twitter is defined and credit.twitter %} | [Twitter](https://twitter.com/{{ credit.twitter }}){% endif %}{% if credit.github is defined and credit.github %} | [GitHub](https://github.com/{{ credit.github }}){% endif %}
+`{{ role.name }}` role was written by:
+{% for credit in authors %}
+- {% if credit.url is defined and credit.url %}[{% endif %}{{ credit.name }}{% if credit.url is defined and credit.url %}]({{ credit.url }}){% endif %}{% if credit.email is defined and credit.email %} | [e-mail](mailto:{{ credit.email }}){% endif %}{% if credit.twitter is defined and credit.twitter %} | [Twitter](https://twitter.com/{{ credit.twitter }}){% endif %}{% if credit.github is defined and credit.github %} | [GitHub](https://github.com/{{ credit.github }}){% endif %}
 {% endfor %}
-{% if galaxy_info.license is defined and galaxy_info.license %}
-License: {% if meta_info.license_url is defined and meta_info.license_url %}[{% endif %}{{ galaxy_info.license | trim }}{% if meta_info.license_url is defined and meta_info.license_url %}]({{ meta_info.license_url }}){% endif %}{% endif %}
-{% endif %}
+License: [{{ license.type | trim }}]({{ license.url | trim }})
 
 ***
 
 This role is part of the [DebOps](http://debops.org/) project. README generated by [ansigenome](https://github.com/nickjj/ansigenome/).
 
-