homeserver/roles/mgrote.fail2ban/tasks/main.yml
Quotengrote 15d783de86
FQCN eingeführt (#70)
* template --> ansible.builtin.template

* apt --> ansible.builtin.apt

* lineinfile --> ansible.builtin.lineinfile

* file --> ansible.builtin.file

* blockinfile --> ansible.builtin.blockinfile

* cron --> ansible.builtin.cron

* timezone --> ansible.builtin.timezone

* get_url --> ansible.builtin.get_url

* group --> ansible.builtin.group

* user --> ansible.builtin.user

* unarchive --> ansible.builtin.unarchive

* service --> ansible.builtin.service

* apache2_module --> ansible.builtin.apache2_module

* package --> ansible.builtin.apt

* template --> ansible.builtin.template 2
2020-11-21 19:41:19 +01:00

22 lines
549 B
YAML

---
- name: install fail2ban-packages
become: yes
ansible.builtin.apt:
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