spamassassin: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-29 18:12:45 +00:00
parent a61b7c92e3
commit aff109d3e7
2 changed files with 8 additions and 10 deletions

View file

@ -1,6 +1,5 @@
---
- name: restart spamassassin
service:
- name: Restart spamassassin
ansible.builtin.service:
name: spamassassin
state: restarted

View file

@ -1,12 +1,11 @@
---
- name: install packages
package:
- name: Install packages
ansible.builtin.package:
name: spamassassin
state: installed
- name: copy local config
copy:
- name: Copy local config
ansible.builtin.copy:
dest: /etc/mail/spamassassin/local.cf
src: local.cf
mode: 0644
@ -14,8 +13,8 @@
group: "{{ ansible_wheel }}"
notify: restart spamassassin
- name: enable service
service:
- name: Enable service
ansible.builtin.service:
name: spamassassin
enabled: true
state: started