iptables: setting chain policy is not idempotent #25153
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
valentin-krasontovitsch commentedMay 30, 2017
ISSUE TYPE
COMPONENT NAME
iptables
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Running ansible on MacOS Sierra 12.12.3 (probably irrelevant), and managing Ubuntu 16.04 (kernel: 4.4.0-62-generic)
SUMMARY
Using the
iptablesmodule to set policies on built in chains always returnschanged, is hence not idempotent.STEPS TO REPRODUCE
Run the following playbook twice on any host with iptables, substituting the hostname appropriately.
EXPECTED RESULTS
Should report OK at least on the second run.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: