Open FloMiau opened 3 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @ahtik @ovcharenko @pyykkis click here for bot help
From the code, it looks like the current state is only looked at for check mode, but for non-check mode, it simply calls ufw
and compares output before and after to determine whether something changed.
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
Summary
A policy change is executed even if the same policy is set causing delays and disconnects
Issue Type
Bug Report
Component Name
ufw
Ansible Version
2.9.13 is also affected
Configuration
OS / Environment
Source Ubuntu 18.04 Target Debian 10.8, Ubuntu 18.04/20.04
Steps To Reproduce
Expected Results
Nothing happens, since the state before is this:
Actual Results
Here are the commands, that are used for a policy change.
The "/usr/sbin/ufw default allow outgoing" causes ufw - I think - to drop all or some connections.
Changing the policy takes about 6 seconds, it takes Ansible a lot of time to reconnect. If I have a lot of hosts in my list some of them are failing this task with a disconnect.