New feature in action.
This commit is contained in:
parent
bb50e878ce
commit
64ee45c4c9
12
README.md
12
README.md
|
|
@ -8,7 +8,6 @@ This script loads input from:
|
|||
|
||||
- meta/main.yml*
|
||||
- meta/version.yml
|
||||
- meta/exception.yml
|
||||
- meta/preferences.yml
|
||||
- defaults/main.yml
|
||||
- requirements.yml
|
||||
|
|
@ -83,17 +82,6 @@ versions:
|
|||
url: "https://github.com/ansible/ansible/releases"
|
||||
```
|
||||
|
||||
## meta/exception.yml
|
||||
|
||||
This optional file describes why some build are excepted.
|
||||
|
||||
```yaml
|
||||
---
|
||||
exceptions:
|
||||
- variation: alpine
|
||||
reason: "Not idempotent"
|
||||
```
|
||||
|
||||
## meta/preferences.yml
|
||||
|
||||
This optional file describes how Travis, Tox and Molecule should behave.
|
||||
|
|
|
|||
11
generate.yml
11
generate.yml
|
|
@ -32,17 +32,6 @@
|
|||
register: versionyml
|
||||
when:
|
||||
- versionymlstat.stat.exists | bool
|
||||
- name: check meta/exception.yml
|
||||
stat:
|
||||
path: "{{ role_path }}/meta/exception.yml"
|
||||
register: exceptionymlstat
|
||||
|
||||
- name: load meta/exception.yml
|
||||
include_vars:
|
||||
file: "{{ role_path }}/meta/exception.yml"
|
||||
register: exceptionyml
|
||||
when:
|
||||
- exceptionymlstat.stat.exists | bool
|
||||
|
||||
- name: check meta/preferences.yml
|
||||
stat:
|
||||
|
|
|
|||
|
|
@ -76,16 +76,6 @@ The minimum version of Ansible required is {{ meta.galaxy_info.min_ansible_versi
|
|||
- The current version.
|
||||
- The development version.
|
||||
|
||||
{% if exceptions is defined %}
|
||||
## [Exceptions](#exceptions)
|
||||
|
||||
Some roles can't run on a specific distribution or version. Here are some exceptions.
|
||||
|
||||
| variation | reason |
|
||||
|---------------------------|------------------------|
|
||||
{% for exception in exceptions %}| {{ exception.variation }} | {{ exception.reason }} |
|
||||
{% endfor %}{% endif %}
|
||||
|
||||
{% if versions is defined %}
|
||||
## [Included version(s)](#included-versions)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,10 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
{% if versionymlstat.stat.exists or exceptionymlstat.stat.exists or preferencesymlstat.stat.exists or verify.stat.exists %}
|
||||
{% if versionymlstat.stat.exists or preferencesymlstat.stat.exists or verify.stat.exists %}
|
||||
exclude_paths:
|
||||
{% if versionymlstat.stat.exists %}
|
||||
- ./meta/version.yml
|
||||
{% endif %}
|
||||
{% if exceptionymlstat.stat.exists %}
|
||||
- ./meta/exception.yml
|
||||
{% endif %}
|
||||
{% if preferencesymlstat.stat.exists %}
|
||||
- ./meta/preferences.yml
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: galaxy
|
||||
uses: robertdebock/galaxy-action@1.1.0
|
||||
uses: robertdebock/galaxy-action@1.2.0
|
||||
with:
|
||||
galaxy_api_key: {% raw %}${{ secrets.galaxy_api_key }}{% endraw %}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
image: "robertdebock/github-action-molecule:4.0.5"
|
||||
image: "robertdebock/github-action-molecule:4.0.6"
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
||||
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@4.0.6
|
||||
uses: robertdebock/molecule-action@4.0.7
|
||||
with:
|
||||
command: lint
|
||||
test:
|
||||
|
|
@ -51,7 +51,7 @@ jobs:
|
|||
- name: parse apparmor for mysql
|
||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@4.0.6
|
||||
uses: robertdebock/molecule-action@4.0.7
|
||||
with:
|
||||
image: {% raw %}${{ matrix.config.image }}{% endraw %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue