Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup the generated files #28

Open
jschaeff opened this issue Jan 31, 2018 · 2 comments
Open

Backup the generated files #28

jschaeff opened this issue Jan 31, 2018 · 2 comments

Comments

@jschaeff
Copy link

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.

@mikegleasonjr
Copy link
Owner

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

@jschaeff
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants