https://docs.ansible.com/ansible/latest/modules/ufw_module.html
I have configured Ansible 2 to allow a bunch of ip addresses with ufw with entries like this:
- name: allow from this one computer
ufw:
rule: allow
port: 22
src: 192.168.5.5
However, I would also like to remove any old entries, or entries that got there by mistake.
For example, if an old version had 192.168.8.8, I would like to remove it. Or if somebody added it manually.
Is there any reasonable way to do that? I guess if the server is only ever configured by ansible, and when I remove an ip address from the list, I add an entry to remove it, I won't have that problem.