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

fix to enable removal of old jobs #374

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

bartowl
Copy link
Contributor

@bartowl bartowl commented Aug 17, 2023

Original PR (#369) did allow removal of crontab jobs by specifying state: absent on rman_jobs entries. It however still tries to copy the rman script (which when state=absent does not really make sense and may even result in error if custom rman script got already removed/renamed on controller) and requires to add all time-related field options.

With this PR the task has been split into 2 - one task that will create required jobs (with state=present), and another one that will remove only the tasks with state=absent without requirement to provide hour, minute, weekday etc. Only name and state=absent is needed for removal. In addition the role will not try to copy rman scripts for which the state has been set to absent. It will however not remove them either from systems. They will be left for eventual manual deletion.

@Rendanic Rendanic added this to the 3.12 milestone Aug 17, 2023
@Rendanic Rendanic merged commit ab223b5 into oravirt:master Aug 17, 2023
5 checks passed
@Rendanic Rendanic mentioned this pull request Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants