diff --git a/roles/patrix/tasks/main.yml b/roles/patrix/tasks/main.yml index c8c02a3..da75ddf 100644 --- a/roles/patrix/tasks/main.yml +++ b/roles/patrix/tasks/main.yml @@ -2,7 +2,7 @@ - include: install_{{ ansible_os_family }}.yml -- name: Deploy patrix config for root user +- name: Deploy global patrix config template: src=patrixrc.j2 dest=/etc/patrixrc mode='600' tags: patrix diff --git a/roles/pmg/defaults/main.yml b/roles/pmg/defaults/main.yml index 0e74a03..eb60473 100644 --- a/roles/pmg/defaults/main.yml +++ b/roles/pmg/defaults/main.yml @@ -35,7 +35,7 @@ pmg_bayes_imap_ham: Ham # as message/rfc822 (it's the case for example with Zimbra spam / non spam buttons) # then set it to true. If true, the script will extract the first rfc822 attachment # and feed it to sa-learn instead of feeding the outer email -pmg_bays_imap_attachment: False +pmg_bayes_imap_attachment: False # Should we use the openfish feeds. They should only be used for personal usage # unless allowed by openphish. See https://openphish.com/feed.txt diff --git a/roles/pmg/templates/imap-sa-learn.j2 b/roles/pmg/templates/imap-sa-learn.j2 index 510d4e7..560c872 100644 --- a/roles/pmg/templates/imap-sa-learn.j2 +++ b/roles/pmg/templates/imap-sa-learn.j2 @@ -10,6 +10,6 @@ IMAP_SA_LEARN_PASSWORD={{ pmg_bayes_imap_pass | quote }} IMAP_SA_LEARN_SPAMDIR={{ pmg_bayes_imap_spam }} IMAP_SA_LEARN_HAMDIR={{ pmg_bayes_imap_ham }} IMAP_SA_LEARN_SECURITY={{ pmg_bayes_imap_security }} -{% if pmg_bays_imap_attachment %} +{% if pmg_bayes_imap_attachment %} IMAP_SA_LEARN_ATTACHMENT=1 {% endif %}