Skip to content

Commit

Permalink
Merge pull request #40 from systemli/fix_path_to_dmarc_files
Browse files Browse the repository at this point in the history
Fix upstream file names of dmarc files
  • Loading branch information
xshadow authored Sep 3, 2022
2 parents 134235f + d588fb9 commit 85bc0a2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tasks/dmarc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
# There was an upstream change to upper case file names
- name: Delete former DMARC plugin files
file:
path: "/etc/spamassassin/{{ item }}"
state: absent
with_items:
- Dmarc.pm
- Dmarc.cf
- Dmarc.pre

- name: Enable DMARC plugin
block:
Expand Down Expand Up @@ -30,9 +39,9 @@
dest: /etc/spamassassin/
mode: '0644'
with_items:
- Dmarc.pm
- Dmarc.cf
- Dmarc.pre
- DMARC.pm
- DMARC.cf
- DMARC.pre
notify: restart spamassassin
when: spamassassin_dmarc_enabled

Expand All @@ -41,8 +50,8 @@
path: "/etc/spamassassin/{{ item }}"
state: absent
with_items:
- Dmarc.pm
- Dmarc.cf
- Dmarc.pre
- DMARC.pm
- DMARC.cf
- DMARC.pre
when: not spamassassin_dmarc_enabled
notify: restart spamassassin

0 comments on commit 85bc0a2

Please sign in to comment.