diff --git a/.ansible-lint b/.ansible-lint index a63c72e..020fc7a 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -8,3 +8,9 @@ profile: production # min, basic, moderate,safety, shared, production # option are parsed relative to the CWD of execution. exclude_paths: - .github/ + - .ansible-lint + - requirements.yml + +# Offline mode enables installation of requirements.yml and schema refreshing +# needed by the community collection +online: true diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 69781ed..721e97b 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -15,4 +15,4 @@ jobs: - name: Run ansible-lint # replace `main` with any valid ref, or tags like `v6` - uses: ansible/ansible-lint-action@cad5176ea6f24a38f909d688bd467ec8d942d7e1 # v 6.17.0 + uses: ansible/ansible-lint-action@v6.3.0 # the latest version has a bug that do not run in online mode diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..8e165ea --- /dev/null +++ b/requirements.yml @@ -0,0 +1,4 @@ +--- +collections: + - name: community.docker + - name: community.crypto \ No newline at end of file diff --git a/roles/scap_open/tasks/main.yml b/roles/scap_open/tasks/main.yml index 667174a..beae425 100644 --- a/roles/scap_open/tasks/main.yml +++ b/roles/scap_open/tasks/main.yml @@ -161,7 +161,7 @@ rescue: - name: Print error message to stdout --- build bpf probe ansible.builtin.debug: - var: result + var: bpf_probe_result always: - name: Dump error message to file ansible.builtin.copy: