ansible-role-firewall icon indicating copy to clipboard operation
ansible-role-firewall copied to clipboard

Backup the generated files

Open jschaeff opened this issue 7 years ago • 2 comments

Could you add backup: yes on the rules templates tasks so that an horrible mistake could be easily undone ?

By the way, thanks for this role and the smart use of combining the hashes.

jschaeff avatar Jan 31 '18 14:01 jschaeff

I am open to suggestions. Would /etc/iptables.v{4,6}.backup be a good idea? Created only if it does not exists?

mikegleasonjr avatar Mar 27 '18 19:03 mikegleasonjr

I guess you should create it always, because each ansible run has to generate a backup of the previous run. It's not completely error-proof, as a backup will be overwritten on the second ansible run, but it's better than nothing.

jschaeff avatar Mar 28 '18 15:03 jschaeff