Added linting to molecule.
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: "Include shnee.os_release"
|
||||
include_role:
|
||||
ansible.builtin.include_role:
|
||||
name: "shnee.os_release"
|
||||
|
||||
@@ -3,6 +3,10 @@ dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
platforms:
|
||||
- name: centos-8-stream
|
||||
image: quay.io/centos/centos:stream8
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
tasks:
|
||||
|
||||
- name: Is the OS in exp_vals?
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that: exp_vals[ansible_hostname] is defined
|
||||
- name: Verify that os-release matches our expected values.
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that: os_release[item.key] == item.value
|
||||
loop: "{{ exp_vals[ansible_hostname] | dict2items }}"
|
||||
|
||||
Reference in New Issue
Block a user