ansible-generator/templates
Robert de Bock 5623672ed2 This action has a new version. 2024-09-12 15:06:33 +02:00
..
CONTRIBUTING.md.j2 Lint issues fixed. 2023-12-18 10:34:42 +01:00
FUNDING.yml.j2 This is a template now. 2023-02-27 09:28:11 +01:00
LICENSE-2.0.txt.j2 Initial commit 2019-12-04 07:14:52 +01:00
README.md.j2 Brace fix. 2024-01-02 08:54:02 +01:00
SECURITY.md.j2 Fix for SECURITY.md 2023-03-08 16:43:02 +01:00
ansible-lint.j2 Finally: yes and no. 2024-03-15 10:34:02 +01:00
bug_report.md.j2 Fixing things. 2023-11-09 10:05:50 +01:00
feature_request.md.j2 Sponsoring is optional. 2023-11-09 10:09:34 +01:00
galaxy.yml.j2 Update to most recent action. 2023-02-27 09:28:56 +01:00
gitlab-ci.yml.j2 Test multiple versions of python. 2024-07-20 08:10:28 +02:00
molecule-action.yml.j2 Pass all variables. 2024-08-30 14:35:56 +02:00
molecule.yml.j2 Write is required. 2024-07-01 14:58:20 +02:00
requirements2png.yml.j2 more yes no 2024-03-18 09:37:07 +01:00
settings.yml.j2 Templates all over the place. 2023-02-27 09:29:03 +01:00
todo-action.yml.j2 This action has a new version. 2024-09-12 15:06:33 +02:00
tox.ini.j2 Pass all variables. 2024-08-30 14:35:56 +02:00

README.md.j2

# [Ansible role {{ role_name }}](#{{ role_name }})

{{ meta.galaxy_info.description }}

|GitHub|GitLab|Downloads|Version|
|------|------|---------|-------|
|[![github](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/workflows/Ansible%20Molecule/badge.svg)](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/actions)|[![gitlab](https://gitlab.com/{{ gitlab_namespace }}/ansible-role-{{ role_name }}/badges/master/pipeline.svg)](https://gitlab.com/{{ gitlab_namespace }}/ansible-role-{{ role_name }})|[![downloads](https://img.shields.io/ansible/role/d/{{ galaxy_namespace }}/{{ role_name }})](https://galaxy.ansible.com/{{ galaxy_namespace }}/{{ role_name }})|[![Version](https://img.shields.io/github/release/{{ github_namespace }}/ansible-role-{{ role_name }}.svg)](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/releases/)|

## [Example Playbook](#example-playbook)

This example is taken from [`molecule/default/converge.yml`](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/blob/master/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`](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/blob/master/molecule/default/prepare.yml):

```yaml
{{ prepare.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```

{% endif %}
{% if custom_message is defined %}
{{ custom_message }}
{% endif %}

{% if variables.content is defined %}
## [Role Variables](#role-variables)

The default values for the variables are set in [`defaults/main.yml`](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/blob/master/defaults/main.yml):

```yaml
{{ variables.content | b64decode }}```
{% endif %}

## [Requirements](#requirements)

- pip packages listed in [requirements.txt](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/blob/master/requirements.txt).

{% if requirements is defined and requirements.roles is defined %}
## [State of used roles](#state-of-used-roles)

The following roles are used to prepare a system. You can prepare your system in another way.

| 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/{{ gitlab_namespace }}/{{ requirement.name | regex_replace(galaxy_namespace + '\.', 'ansible-role-') }}/badges/master/pipeline.svg)](https://gitlab.com/{{ gitlab_namespace }}/{{ requirement.name | regex_replace(galaxy_namespace + '\.', 'ansible-role-') }})|
{% endfor %}
{% endif %}

{% if meta.dependencies %}
## [Dependencies](#dependencies)

Most roles require some kind of preparation, this is done in `molecule/default/prepare.yml`. This role has a "hard" dependency on the following roles:

{% for dependency in meta.dependencies %}
- {{ dependency }}
{% endfor %}

{% endif %}
## [Context](#context)

This role is a part of many compatible roles. Have a look at [the documentation of these roles]({{ author_website }}) for further information.

Here is an overview of related roles:
![dependencies](https://raw.githubusercontent.com/{{ github_namespace }}/ansible-role-{{ role_name }}/png/requirements.png "Dependencies")

## [Compatibility](#compatibility)

This role has been tested on these [container images](https://hub.docker.com/u/{{ docker_namespace }}):

|container|tags|
|---------|----|
{% for platform in meta.galaxy_info.platforms %}
|[{{ platform.name }}]({{ image_docker_hub_url_mapping[platform.name | lower] }})|{% for version in platform.versions %}{{ version }}{% if not loop.last %}, {% endif %}{% endfor %}|
{% endfor %}

The minimum version of Ansible required is {{ meta.galaxy_info.min_ansible_version }}, tests have been done to:

- The previous version.
- The current version.
- The development version.

If you find issues, please register them in [GitHub](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/issues).

## [License](#license)

[{{ meta.galaxy_info.license }}](https://github.com/{{ github_namespace }}/ansible-role-{{ role_name }}/blob/master/LICENSE).

## [Author Information](#author-information)

[{{ meta.galaxy_info.author }}]({{ author_website }})

{% if sponsored_message %}
Please consider [sponsoring me](https://github.com/sponsors/{{ github_namespace }}).
{% endif %}