activate ssh and fail2ban roles only when enabled

This commit is contained in:
Aine 2023-03-18 22:47:41 +02:00
parent 794f0992e5
commit 93e5a4eab5
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -39,9 +39,11 @@
- role: galaxy/swap
- role: galaxy/ssh
- when: system_security_ssh_enabled | bool
role: galaxy/ssh
- role: galaxy/fail2ban
- when: system_security_fail2ban_enabled | bool
role: galaxy/fail2ban
# This role exposes various tags (setup-postgres, setup-all, upgrade-postgres, import-postgres, etc.), so we don't tag it here.
- role: galaxy/com.devture.ansible.role.postgres