Check for defaults, don't lint. (For CIS role.)
This commit is contained in:
parent
71b7419512
commit
67c4b1c3db
|
|
@ -108,6 +108,11 @@
|
|||
when:
|
||||
- verify.stat.exists | bool
|
||||
|
||||
- name: check molecule/default/defaults.yml
|
||||
stat:
|
||||
path: "{{ role_path }}/molecule/default/defaults.yml"
|
||||
register: defaults
|
||||
|
||||
- name: load galaxy_id
|
||||
shell: "set -o pipefail ; ansible-galaxy info robertdebock.{{ role_name }} | grep ' id: ' | awk '{print $NF}'"
|
||||
register: galaxy_id
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ exclude_paths:
|
|||
{% if verify.stat.exists %}
|
||||
- ./molecule/default/verify.yml
|
||||
{% endif %}
|
||||
{% if defaults.stat.exists %}
|
||||
- ./molecule/default/defaults.yml
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
- ./molecule/default/collections.yml
|
||||
- ./.tox
|
||||
|
|
|
|||
Loading…
Reference in New Issue