Backup boolean not adjustable
Closed this issue · 2 comments
JKetelaar commented
Describe the bug
All template calls use backup: yes, for example: https://github.com/nginxinc/ansible-role-nginx-config/blob/4269a228dbc557c5b8aa6942f188d5e43a958a4c/tasks/config/template-config.yml#L41
This creates a lot of backup files once the role has run.
To reproduce
Steps to reproduce the behavior:
- Deploy NGINX Config role
- Deploy NGINX Config role again
- Check the
/etc/nginx/conf.d/directory for example; this will have a lot of backup files
Expected behavior
While having backup files is fine, it should be opt-out
Is this expected behavior? Or would you like an option where this is set from a var(iable)?
alessfg commented
That is the expected behaviour. That being said, I'm open to making it customisable so that people can opt-out of the backup feature.
JKetelaar commented
Wonderful, I'll work on that!