Remove logo, use table for badges.
This commit is contained in:
parent
38c84d3984
commit
d82bd8623e
|
|
@ -15,7 +15,6 @@ This script loads input from:
|
|||
- molecule/default/prepare.yml
|
||||
- molecule/default/playbook.yml*
|
||||
- molecule/default/verify.yml
|
||||
- meta/logo.png
|
||||
- generate_modules.sh
|
||||
- Ansible Galaxy
|
||||
|
||||
|
|
|
|||
|
|
@ -44,11 +44,6 @@
|
|||
when:
|
||||
- exceptionymlstat.stat.exists | bool
|
||||
|
||||
- name: check meta/logo.png
|
||||
stat:
|
||||
path: "{{ role_path }}/meta/logo.png"
|
||||
register: logo
|
||||
|
||||
- name: check meta/preferences.yml
|
||||
stat:
|
||||
path: "{{ role_path }}/meta/preferences.yml"
|
||||
|
|
|
|||
|
|
@ -1,22 +1,20 @@
|
|||
{{ role_name }}
|
||||
=========
|
||||
|
||||
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>{% if logo.stat.exists %}<img src="https://raw.githubusercontent.com/{{ github_namespace }}/ansible-role-{{ role_name }}/master/meta/logo.png" alt="Project logo" width="40" height="40" align="left"/>{% endif %}
|
||||
|
||||
<a href="https://travis-ci.org/{{ travis_namespace }}/ansible-role-{{ role_name }}"> <img src="https://travis-ci.org/{{ travis_namespace }}/ansible-role-{{ role_name }}.svg?branch=master" alt="Build status"/></a> <img src="https://img.shields.io/ansible/role/d/{{ galaxy_id.stdout }}"/> <img src="https://img.shields.io/ansible/quality/{{ galaxy_id.stdout }}"/>
|
||||
|
||||
<a href="https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions"><img src="https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/workflows/Ansible%20Molecule/badge.svg"/></a>
|
||||
|
||||
{{ meta.galaxy_info.description }}
|
||||
|
||||
|Travis|GitHub|Quality|Downloads|
|
||||
|------|------|-------|---------|
|
||||
|[](https://travis-ci.org/{{ travis_namespace }}/ansible-role-{{ role_name }})|[](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|||
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
This example is taken from `molecule/resources/playbook.yml` and is tested on each push, pull request and release.
|
||||
This example is taken from `molecule/resources/converge.yml` and is tested on each push, pull request and release.
|
||||
```yaml
|
||||
{{ example.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
|
||||
|
||||
The machine you are running this on, may need to be prepared, I use this playbook to ensure everything is in place to let the role work.
|
||||
The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
||||
```yaml
|
||||
{% if prepare.content is defined %}
|
||||
{{ prepare.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
|
||||
|
|
@ -26,7 +24,7 @@ No preparation required.
|
|||
{% endif %}
|
||||
|
||||
{% if verifyyml.content is defined %}
|
||||
After running this role, this playbook runs to verify that everything works, this may be a good example how you can use this role.
|
||||
For verification `molecule/resources/verify.yml` run after the role has been applied.
|
||||
```yaml
|
||||
{{ verifyyml.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue