Create initial log files for fail2ban

This commit is contained in:
2022-06-07 00:25:47 -04:00
parent b52ccabd22
commit dd9f84d498
5 changed files with 26 additions and 1 deletions

View File

@@ -78,6 +78,18 @@
register: bitwarden_systemd
notify: rebuild_bitwarden
- name: Create Bitwarden's initial logging directory
file:
path: "{{ bitwarden_logs_identity }}"
state: directory
register: bitwarden_logs
- name: Create Bitwarden's initial log file
file:
path: "{{ bitwarden_logs_identity }}/{{ bitwarden_logs_identity_date }}.txt"
state: touch
when: bitwarden_logs.changed
- name: Install Bitwarden's Fail2ban jail
template:
src: fail2ban-jail.conf.j2