Skip to content

Commit

Permalink
Commands should not change things if nothing needs doing.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Apr 4, 2023
1 parent 60321a8 commit 90eadcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@
- name: Create selinux mod for clamav
ansible.builtin.command:
cmd: checkmodule -M -m -o /etc/my-clamd.mod /etc/my-clamd.te
creates: /etc/my-clamd.mod

- name: Create selinux pp for clamav
ansible.builtin.command:
cmd: semodule_package -o /etc/my-clamd.pp -m /etc/my-clamd.mod
creates: /etc/my-clamd.pp

- name: Load selinux pp for clamav
ansible.builtin.command:
cmd: semodule -i /etc/my-clamd.pp
changed_when: yes

0 comments on commit 90eadcc

Please sign in to comment.