# Configure UFW rules --- - name: Create UFW tcp rules ufw: rule: allow proto: tcp port: '{{ item }}' with_items: - 443 - 80 - 143 - 25 - 70 - 79 - 1326 - 5154 - 6697 - 7776 - 30000 - 25565 - name: Create UFW udp rules ufw: rule: allow proto: udp port: '{{ item }}' with_items: - "60000:61000" - 1326 - 5154 - 30000 - name: Create limits ufw: rule: limit proto: tcp port: '{{ item }}' with_items: - 22 - 587 - 2222