homeserver/roles/mgrote.fail2ban/tasks/main.yml
mg e9f78f93eb Ersetze ansible.builtin.apt module durch ansible.builtin.package (#20)
Bugfix: acng

ansible.builtin.apt --> ansible.builtin.package

Co-authored-by: Michael Grote <38253905+quotengrote@users.noreply.github.com>
Reviewed-on: mg/ansible#20
Co-Authored-By: mg <michael.grote@posteo.de>
Co-Committed-By: mg <michael.grote@posteo.de>
2021-01-02 10:30:54 +01:00

23 lines
553 B
YAML

---
- name: install fail2ban-packages
become: yes
ansible.builtin.package:
name: fail2ban
state: present
- name: copy jail.local
become: yes
ansible.builtin.template:
src: jail.local
dest: /etc/fail2ban/jail.local
mode: 0750
notify: restart_f2b
- name: copy sendmail-common.local
become: yes
ansible.builtin.template:
src: sendmail-common.local
dest: /etc/fail2ban/action.d/sendmail-common.local
mode: 0750
notify: restart_f2b