Skip to content

Commit

Permalink
added pyinilint as ini validator
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Jan 4, 2024
1 parent 391ff9e commit 62cf143
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions molecule/ini-configuration-tests/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@
collections:
- icinga.icinga
tasks:
- ansible.builtin.pip:
name: pyinilint
state: present

- ansible.builtin.template:
src: "{{ lookup('ansible.builtin.env', 'MOLECULE_PROJECT_DIRECTORY', default=Undefined) }}/roles/icingaweb2/templates/modules_config.ini.j2"
dest: "/tmp/{{ item.name }}"
validate: pyinilint %s
loop: "{{ test_cases }}"
vars:
_i2_config_hash: "{{ item._i2_config_hash }}"

0 comments on commit 62cf143

Please sign in to comment.