Added linting to molecule.

This commit is contained in:
2022-05-02 14:57:29 -04:00
parent aeb9d2145e
commit a722fd8574
5 changed files with 16 additions and 22 deletions
+1 -1
View File
@@ -3,5 +3,5 @@
hosts: all
tasks:
- name: "Include shnee.os_release"
include_role:
ansible.builtin.include_role:
name: "shnee.os_release"
+4
View File
@@ -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
+2 -2
View File
@@ -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 }}"