--- # vars file for ensure_fail2ban package_list: - name: fail2ban state: present service_list: - name: fail2ban state: started enabled: true template_list: - dest: /etc/fail2ban/jail.d/99-custom_jails.conf src: '{{ ansible_facts["distribution"] }}/{{ ansible_facts["distribution_major_version"] }}/etc/fail2ban/jail.d/99-custom_jails.conf.j2' owner: root group: root mode: '0644'