iptables flush always reports ok #21182
Labels
affects_2.2
This issue/PR affects Ansible v2.2
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.
p53 commentedFeb 9, 2017
ISSUE TYPE
COMPONENT NAME
iptables
ANSIBLE VERSION
CONFIGURATION
not any special configuration
OS / ENVIRONMENT
control machine ubuntu 16.04
SUMMARY
running:
ansible somehost -i inventory -m iptables 'flush=yes'
answers that's status is ok and changed false, even when rules were there before...
test-ubuntu-16.04 | SUCCESS => {
"chain": null,
"changed": false,
"failed": false,
"flush": true,
"ip_version": "ipv4",
"rule": "",
"state": "present",
"table": "filter"
}
STEPS TO REPRODUCE
ansible test-ubuntu-16.04 -i inventory -m iptables 'flush=yes'EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: