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/main.yml*
|
||||||
- meta/version.yml
|
- meta/version.yml
|
||||||
- meta/exception.yml
|
|
||||||
- meta/preferences.yml
|
- meta/preferences.yml
|
||||||
- defaults/main.yml
|
- defaults/main.yml
|
||||||
- requirements.yml
|
- requirements.yml
|
||||||
|
|
@ -83,17 +82,6 @@ versions:
|
||||||
url: "https://github.com/ansible/ansible/releases"
|
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
|
## 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.
|
||||||
|
|
|
||||||
11
generate.yml
11
generate.yml
|
|
@ -32,17 +32,6 @@
|
||||||
register: versionyml
|
register: versionyml
|
||||||
when:
|
when:
|
||||||
- versionymlstat.stat.exists | bool
|
- 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
|
- name: check meta/preferences.yml
|
||||||
stat:
|
stat:
|
||||||
|
|
|
||||||
|
|
@ -76,16 +76,6 @@ The minimum version of Ansible required is {{ meta.galaxy_info.min_ansible_versi
|
||||||
- The current version.
|
- The current version.
|
||||||
- The development 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 %}
|
{% if versions is defined %}
|
||||||
## [Included version(s)](#included-versions)
|
## [Included version(s)](#included-versions)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,10 @@
|
||||||
---
|
---
|
||||||
{{ ansible_managed | comment }}
|
{{ 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:
|
exclude_paths:
|
||||||
{% if versionymlstat.stat.exists %}
|
{% if versionymlstat.stat.exists %}
|
||||||
- ./meta/version.yml
|
- ./meta/version.yml
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if exceptionymlstat.stat.exists %}
|
|
||||||
- ./meta/exception.yml
|
|
||||||
{% endif %}
|
|
||||||
{% if preferencesymlstat.stat.exists %}
|
{% if preferencesymlstat.stat.exists %}
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.1.0
|
uses: robertdebock/galaxy-action@1.2.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: {% raw %}${{ secrets.galaxy_api_key }}{% endraw %}
|
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:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
||||||
|
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@4.0.6
|
uses: robertdebock/molecule-action@4.0.7
|
||||||
with:
|
with:
|
||||||
command: lint
|
command: lint
|
||||||
test:
|
test:
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
- name: parse apparmor for mysql
|
- name: parse apparmor for mysql
|
||||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@4.0.6
|
uses: robertdebock/molecule-action@4.0.7
|
||||||
with:
|
with:
|
||||||
image: {% raw %}${{ matrix.config.image }}{% endraw %}
|
image: {% raw %}${{ matrix.config.image }}{% endraw %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue