fix lint findings

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
Martin Schurz committed 2023-12-06 11:36:08 +01:00
1 parent 6ce8b68650
commit e00716df62
35 files changed
+161 -167

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@
no_proxy: "{{ lookup('env', 'no_proxy') | default(omit) }}"
tasks:
- name: Execute cinc-auditor tests
command: >
ansible.builtin.command: >
docker run
--volume /run/docker.sock:/run/docker.sock
docker.io/cincproject/auditor exec
@@ -19,10 +19,10 @@
ignore_errors: true
- name: Display details about the cinc-auditor results
debug:
ansible.builtin.debug:
msg: "{{ test_results.stdout_lines }}"
- name: Fail when tests fail
fail:
ansible.builtin.fail:
msg: "Inspec failed to validate"
when: test_results.rc != 0