Drop versions.
This commit is contained in:
parent
4e9357f193
commit
153037c416
25
README.md
25
README.md
|
|
@ -7,7 +7,6 @@ Generate documentation and continuous integration files for an Ansible Role.
|
||||||
This script loads input from:
|
This script loads input from:
|
||||||
|
|
||||||
- meta/main.yml*
|
- meta/main.yml*
|
||||||
- meta/version.yml
|
|
||||||
- meta/preferences.yml
|
- meta/preferences.yml
|
||||||
- defaults/main.yml
|
- defaults/main.yml
|
||||||
- requirements.yml
|
- requirements.yml
|
||||||
|
|
@ -69,32 +68,20 @@ author: Robert de Bock (robert@meinit.nl)
|
||||||
author_website: "https://robertdebock.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
|
## meta/preferences.yml
|
||||||
|
|
||||||
This optional file describes how Travis, Tox and Molecule should behave.
|
This optional file describes how Travis, Tox and Molecule should behave.
|
||||||
|
|
||||||
|parameter |type |default|description |
|
|parameter |type |default|description |
|
||||||
|----------------|---------------|-------|-----------|
|
|--------------------|---------------|-------|-----------------------------------------------------------------------------------------|
|
||||||
|tox_version |list of strings|not set|What versions should Tox test? (Default: all.)|
|
|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`.)
|
|enterprise_linux |string |not set|If `EL` is used in `meta/main.yml` where should tests happen on? (Default: `rockylinux`.)|
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
tox_versions:
|
tox_ansible_versions:
|
||||||
- current
|
- 4
|
||||||
|
- 5
|
||||||
enterprise_linx: centos
|
enterprise_linx: centos
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,6 @@
|
||||||
file: "{{ role_path }}/meta/main.yml"
|
file: "{{ role_path }}/meta/main.yml"
|
||||||
name: meta
|
name: meta
|
||||||
|
|
||||||
- name: check meta/version.yml
|
|
||||||
stat:
|
|
||||||
path: "{{ role_path }}/meta/version.yml"
|
|
||||||
register: versionymlstat
|
|
||||||
|
|
||||||
- name: check meta/preferences.yml
|
- name: check meta/preferences.yml
|
||||||
stat:
|
stat:
|
||||||
path: "{{ role_path }}/meta/preferences.yml"
|
path: "{{ role_path }}/meta/preferences.yml"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
---
|
---
|
||||||
{{ ansible_managed | comment }}
|
{{ 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:
|
exclude_paths:
|
||||||
{% if versionymlstat.stat.exists %}
|
|
||||||
- ./meta/version.yml
|
|
||||||
{% endif %}
|
|
||||||
{% if preferencesymlstat.stat.exists %}
|
{% if preferencesymlstat.stat.exists %}
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue