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 authored and richm committed Dec 8, 2023
1 parent c7e9dea commit bf0d6ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/selinux_load_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
delegate_to: localhost
become: false

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

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

0 comments on commit bf0d6ba

Please sign in to comment.