spamassassin: change dependency on evomaintenance
All checks were successful
continuous-integration/drone/push Build is passing

Fail with an error if evomaintenance config is missing
instead of trying to install a package that doesn't exist anymore.
This commit is contained in:
Jérémy Lecour 2021-05-02 01:22:57 +02:00 committed by Jérémy Lecour
parent 8716ffbb1e
commit 43c726e86a
2 changed files with 13 additions and 1 deletions

View file

@ -21,6 +21,8 @@ The **patch** part changes incrementally at each release.
* evolinux-base: copy GPG key instead of using apt-key
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
* spamassassin: change dependency on evomaintenance
* squid: remove obsolete variable on Squid 4
### Fixed

View file

@ -3,7 +3,6 @@
apt:
name:
- spamassassin
- evomaintenance
state: present
tags:
- spamassassin
@ -47,6 +46,17 @@
tags:
- spamassassin
- name: Check evomaintenance config
stat:
path: /etc/evomaintenance.cf
register: _evomaintenance_config
- name: Verify sa-update dependency
assert:
that:
- _evomaintenance_config.stat.exists
msg: sa-update.sh needs /etc/evomaintenance.cf
- name: copy sa-update.sh script
copy:
src: sa-update.sh