forked from evolix/ansible-roles
spamassassin: change dependency on evomaintenance
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:
parent
8716ffbb1e
commit
43c726e86a
|
@ -21,6 +21,8 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
* evolinux-base: copy GPG key instead of using apt-key
|
* evolinux-base: copy GPG key instead of using apt-key
|
||||||
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
* ntpd: Add leapfile configuration setting to ntpd on debian 10+
|
||||||
|
* spamassassin: change dependency on evomaintenance
|
||||||
|
* squid: remove obsolete variable on Squid 4
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- spamassassin
|
- spamassassin
|
||||||
- evomaintenance
|
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- spamassassin
|
- spamassassin
|
||||||
|
@ -47,6 +46,17 @@
|
||||||
tags:
|
tags:
|
||||||
- spamassassin
|
- 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
|
- name: copy sa-update.sh script
|
||||||
copy:
|
copy:
|
||||||
src: sa-update.sh
|
src: sa-update.sh
|
||||||
|
|
Loading…
Reference in a new issue