diff --git a/templates/README.md.j2 b/templates/README.md.j2 index 476dd44..f02ba1d 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -9,11 +9,13 @@ ## [Example Playbook](#example-playbook) This example is taken from `molecule/default/converge.yml` and is tested on each push, pull request and release. + ```yaml {{ example.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}``` {% if prepare.content is defined %} The machine needs to be prepared. In CI this is done using `molecule/default/prepare.yml`: + ```yaml {{ prepare.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}``` @@ -24,6 +26,7 @@ Also see a [full explanation and example](https://robertdebock.nl/how-to-use-the ## [Role Variables](#role-variables) The default values for the variables are set in `defaults/main.yml`: + ```yaml {{ variables.content | b64decode }}``` {% endif %} @@ -40,7 +43,7 @@ The following roles are used to prepare a system. You can prepare your system in | Requirement | GitHub | GitLab | |-------------|--------|--------| {% for requirement in requirements.roles %} -|[{{ requirement.name }}](https://galaxy.ansible.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.') }})|[![Build Status GitHub](https://github.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/workflows/Ansible%20Molecule/badge.svg)](https://github.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/actions)|[![Build Status GitLab ](https://gitlab.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/badges/master/pipeline.svg)](https://gitlab.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }})| +|[{{ requirement.name }}](https://galaxy.ansible.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.') }})|[![Build Status GitHub](https://github.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/workflows/Ansible%20Molecule/badge.svg)](https://github.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/actions)|[![Build Status GitLab](https://gitlab.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }}/badges/master/pipeline.svg)](https://gitlab.com/{{ github_namespace }}/{{ requirement.name | regex_replace(github_namespace + '\.', 'ansible-role-') }})| {% endfor %} {% endif %} @@ -76,17 +79,6 @@ The minimum version of Ansible required is {{ meta.galaxy_info.min_ansible_versi - The current version. - The development version. -{% if versions is defined %} -## [Included version(s)](#included-versions) - -This role [refers to a version]({{ reference }}) released by {{ project_name }}. Check the released version(s) here: -{% for version in versions %} -- [{{ version.name }}]({{ version.url }}). -{% endfor %} - -This version reference means a role may get outdated. Monthly tests occur to see if [bit-rot](https://en.wikipedia.org/wiki/Software_rot) occured. If you however find a problem, please create an issue, I'll get on it as soon as possible. -{% endif %} - If you find issues, please register them in [GitHub](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/issues) ## [License](#license) diff --git a/templates/gitlab-ci.yml.j2 b/templates/gitlab-ci.yml.j2 index a8c67c7..1870566 100644 --- a/templates/gitlab-ci.yml.j2 +++ b/templates/gitlab-ci.yml.j2 @@ -5,7 +5,6 @@ services: - docker:dind variables: - DOCKER_HOST: "tcp://docker:2375" PY_COLORS: 1 molecule: diff --git a/vars/main.yml b/vars/main.yml index 760cad6..7034746 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -65,7 +65,7 @@ distribution_version_mapping: "8": - 8 "9": - - 9 + - latest Fedora: all: - 35