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
- name: restart spamassassin ansible.builtin.service:
service:
name: spamassassin name: spamassassin
state: restarted state: restarted

View file

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