Skip to content

Commit

Permalink
fix: Fail if selinux module doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrosi committed Dec 8, 2023
1 parent c7e9dea commit 14e980a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/selinux_load_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
delegate_to: localhost
become: false

- name: Raise an error when module file doesn't exist
fail:
msg: The module that you try to install doesn't exist in {{ __selinux_item.path }}

Check failure on line 31 in tasks/selinux_load_module.yml

View workflow job for this annotation

GitHub Actions / ansible_lint

yaml[line-length]

Line too long (90 > 80 characters)
when: not module_file.stat.exists

- name: Install module
when: not module_file.stat.checksum in checksum
block:
Expand Down

0 comments on commit 14e980a

Please sign in to comment.