Open saintger opened 6 years ago
Sorry I was not really understandable about the issue (I was in a hurry). The current version of ansible-ufw write the rules in /lib/ufw, but the current version of ufw read the rules in /etc/ufw. I found the problem when I was locked out of my own server because ansible-ufw activated the firewall but didn't correctly specified the opened port (as they were in /lib/ufw, they were not taken into account).
@saintger I ran into the same issue. However this role is not really necessary anymore because of http://docs.ansible.com/ansible/latest/ufw_module.html
Since version 0.35, rules are stored in /etc/ufw instead of /lib/ufw: https://bugs.launchpad.net/ufw/+bug/728128