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

Add cleanup handlers #5

Open
bwachter opened this issue Oct 14, 2020 · 0 comments
Open

Add cleanup handlers #5

bwachter opened this issue Oct 14, 2020 · 0 comments

Comments

@bwachter
Copy link
Member

Some roles, like web servers, generally should provide includes for other roles to easily add to the webserver configuration. Problem there is that this is not compatible with the role taking control of all configuration files - it won't know which files got added as includes during the main role run.

To fix this, and avoid an ordering mess, roles should be able to register cleanup callbacks into basic_host to be run at the end of the play, which allows removal of files not touched by any role during the run.

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

1 participant