Drop versions.

This commit is contained in:
Robert de Bock 2022-08-04 06:54:04 +02:00
parent 4e9357f193
commit 153037c416
3 changed files with 8 additions and 29 deletions

View File

@ -7,7 +7,6 @@ Generate documentation and continuous integration files for an Ansible Role.
This script loads input from:
- meta/main.yml*
- meta/version.yml
- meta/preferences.yml
- defaults/main.yml
- requirements.yml
@ -69,32 +68,20 @@ author: Robert de Bock (robert@meinit.nl)
author_website: "https://robertdebock.nl/"
```
## meta/version.yml
This optional file can be placed when a role contains a version.
```yaml
---
project_name: Ansible
reference: "defaults/main.yml"
versions:
- name: ansible
url: "https://github.com/ansible/ansible/releases"
```
## meta/preferences.yml
This optional file describes how Travis, Tox and Molecule should behave.
|parameter |type |default|description |
|----------------|---------------|-------|-----------|
|tox_version |list of strings|not set|What versions should Tox test? (Default: all.)|
|enterprise_linux|string |not set|If `EL` is used in `meta/main.yml` where should tests happen on? (Default: `rockylinux`.)
|--------------------|---------------|-------|-----------------------------------------------------------------------------------------|
|tox_ansible_versions|list of strings|not set|What versions should Tox test? (Default: all.) |
|enterprise_linux |string |not set|If `EL` is used in `meta/main.yml` where should tests happen on? (Default: `rockylinux`.)|
```yaml
---
tox_versions:
- current
tox_ansible_versions:
- 4
- 5
enterprise_linx: centos
```

View File

@ -21,11 +21,6 @@
file: "{{ role_path }}/meta/main.yml"
name: meta
- name: check meta/version.yml
stat:
path: "{{ role_path }}/meta/version.yml"
register: versionymlstat
- name: check meta/preferences.yml
stat:
path: "{{ role_path }}/meta/preferences.yml"

View File

@ -1,10 +1,7 @@
---
{{ ansible_managed | comment }}
{% if versionymlstat.stat.exists or preferencesymlstat.stat.exists or verify.stat.exists %}
{% if preferencesymlstat.stat.exists or verify.stat.exists %}
exclude_paths:
{% if versionymlstat.stat.exists %}
- ./meta/version.yml
{% endif %}
{% if preferencesymlstat.stat.exists %}
- ./meta/preferences.yml
{% endif %}