-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Enhancement] Add implicit deletion function #231
Comments
Your code shows how to select all objects for deletion, but it does not actually delete them, if I understand right. Can you extend this to also delete them with our collection? I am thinkging how we can document this, since this shows an important part of the usage, that is hard to get right. My first thought was to add it in Another approach might be to add further documentation in |
I don't think this should be part of a module, but I like the idea of creating a new role that does exactly this for all resources. Or alternatively document it like @schurzi described.
It already does in the set_fact step. There's the
I'm not sure this will work. |
I like the idea of a separate "cleanup" role. (Or maybe an additional flag for the existing role?)
Yeah, I missed that part. All good. |
Description
You currently need to explicitly state the Icinga Director Objects you want to delete. We encountered several situations, where a object was deleted as code, but not removed. The reason is, that you need to state them as a deletion office.
A solution could be to implicitly delete the Objects when removed in Ansible
We came up with following solution as a playbook:
Is there a way to include this either into the collection as an example or create a solution in the role or modules itself?
Thanks in advance!
Additional information
No response
The text was updated successfully, but these errors were encountered: