Set SSH UFW rule via role default
This commit is contained in:
@@ -23,3 +23,4 @@ base_packages:
|
||||
|
||||
|
||||
base_scripts: /srv/.scripts
|
||||
base_ssh_ufw_rule: limit
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
default: allow
|
||||
direction: outgoing
|
||||
|
||||
- name: Allow OpenSSH with rate limiting
|
||||
- name: "{{ base_ssh_ufw_rule | capitalize }} OpenSSH"
|
||||
community.general.ufw:
|
||||
name: ssh
|
||||
rule: limit
|
||||
rule: "{{ base_ssh_ufw_rule | default('limit') }}"
|
||||
|
||||
- name: Remove Fail2ban defaults-debian.conf
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user