ansible-ferm icon indicating copy to clipboard operation
ansible-ferm copied to clipboard

Merge tasks "Remove iptables INPUT rules if requested" and "Configure iptables INPUT rules"

Open htgoebel opened this issue 10 years ago • 1 comments

These are identical except for the state differing. This can be unified using:

state: '{{ "absent" if (item.delete | default(false)) else 'present' }}"

htgoebel avatar Feb 05 '15 17:02 htgoebel

Good idea, although kinda Ruby-ish looking. :-) I guess I'm not used to it. But if it removes a task, I'm all for it!

drybjed avatar Feb 05 '15 17:02 drybjed