Compare commits

...

2 commits

Author SHA1 Message Date
David Prevot 95610e16be bind: allow bullseye and bookworm
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2667|0|2667|0|:zzz:
gitea/ansible-roles/pipeline/head This commit looks good
2023-12-12 17:11:47 +01:00
David Prevot 5f158e031b spamassin: Use spamd starting with Bookworm 2023-12-12 17:11:47 +01:00
3 changed files with 39 additions and 0 deletions

View file

@ -14,6 +14,8 @@ galaxy_info:
- jessie
- stretch
- buster
- bullseye
- bookworm
galaxy_tags: []
# Be sure to remove the '[]' above if you add dependencies

View file

@ -3,3 +3,8 @@
ansible.builtin.service:
name: spamassassin
state: restarted
- name: restart spamd
ansible.builtin.service:
name: spamd
state: restarted

View file

@ -4,6 +4,16 @@
name:
- spamassassin
state: present
when: ansible_distribution_major_version is version('12', '<')
tags:
- spamassassin
- name: install spamd
ansible.builtin.apt:
name:
- spamd
state: present
when: ansible_distribution_major_version is version('12', '>=')
tags:
- spamassassin
@ -13,6 +23,17 @@
dest: /etc/spamassassin/local_evolix.cf
mode: "0644"
notify: restart spamassassin
when: ansible_distribution_major_version is version('12', '<')
tags:
- spamassassin
- name: configure spamd
ansible.builtin.copy:
src: spamassassin.cf
dest: /etc/spamassassin/local_evolix.cf
mode: "0644"
notify: restart spamd
when: ansible_distribution_major_version is version('12', '>=')
tags:
- spamassassin
@ -22,6 +43,7 @@
regexp: 'ENABLED=0'
replace: 'ENABLED=1'
notify: restart spamassassin
when: ansible_distribution_major_version is version('12', '<')
tags:
- spamassassin
@ -97,5 +119,15 @@
name: spamassassin
state: started
enabled: True
when: ansible_distribution_major_version is version('12', '<')
tags:
- spamassassin
- name: ensure spamd is started and enabled
ansible.builtin.systemd:
name: spamd
state: started
enabled: True
when: ansible_distribution_major_version is version('12', '>=')
tags:
- spamassassin