26 lines
445 B
YAML
26 lines
445 B
YAML
---
|
|
|
|
- name: Restart sshd
|
|
ansible.builtin.service:
|
|
name: sshd
|
|
state: restarted
|
|
enabled: true
|
|
|
|
- name: Reload ufw
|
|
ansible.builtin.service:
|
|
name: ufw
|
|
state: restarted
|
|
enabled: true
|
|
|
|
- name: Enable fail2ban
|
|
ansible.builtin.service:
|
|
name: fail2ban
|
|
state: restarted
|
|
enabled: true
|
|
|
|
- name: Enable systemd-timesyncd
|
|
ansible.builtin.service:
|
|
name: systemd-timesyncd
|
|
state: restarted
|
|
enabled: true
|