--- - hosts: '{{ ip_addr }}' become: yes become_method: sudo gather_facts: yes tasks: - name: "[CONFIG FAIL2BAN] Install and configure fail2ban service" import_role: name: config-fail2ban