Skip to content
Snippets Groups Projects
Commit c29818ef authored by Lars Beckers's avatar Lars Beckers
Browse files

spamassassin: template /etc/default/ configuration

parent c1685591
Branches
No related tags found
1 merge request!15Bullseye Compatibility
Pipeline #2897 passed
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
- spamassassin - spamassassin
- name: ensure spamassassin is enabled -- the nasty debian way - name: ensure spamassassin is enabled -- the nasty debian way
copy: template:
src: defaults src: defaults.j2
dest: /etc/default/spamassassin dest: /etc/default/spamassassin
owner: root owner: root
group: root group: root
......
...@@ -4,11 +4,18 @@ ...@@ -4,11 +4,18 @@
# WARNING: please read README.spamd before using. # WARNING: please read README.spamd before using.
# There may be security risks. # There may be security risks.
{% if ansible_distribution_major_version|int(default=99) < 11 %}
# If you're using systemd (default for jessie), the ENABLED setting is # If you're using systemd (default for jessie), the ENABLED setting is
# not used. Instead, enable spamd by issuing: # not used. Instead, enable spamd by issuing:
# systemctl enable spamassassin.service # systemctl enable spamassassin.service
# Change to "1" to enable spamd on systems using sysvinit: # Change to "1" to enable spamd on systems using sysvinit:
ENABLED=1 ENABLED=1
{% else %}
# Prior to version 3.4.2-1, spamd could be enabled by setting
# ENABLED=1 in this file. This is no longer supported. Instead, please
# use the update-rc.d command, invoked for example as "update-rc.d
# spamassassin enable", to enable the spamd service.
{% endif %}
# Options # Options
# See man spamd for possible options. The -d option is automatically added. # See man spamd for possible options. The -d option is automatically added.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment