File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -97,3 +97,8 @@ netbox_keep_uwsgi_updated: false
9797netbox_uwsgi_in_venv : false
9898netbox_uwsgi_options : {}
9999netbox_rqworker_processes : 1
100+
101+ # Whether to install the legacy housekeeping cron job.
102+ # NetBox v4.4+ replaces the housekeeping script with NetBox-managed scheduled jobs.
103+ # Set to false to skip creating the cron entry regardless of version.
104+ netbox_housekeeping_cron_enabled : true
Original file line number Diff line number Diff line change 200200 user : " {{ netbox_user }}"
201201 cron_file : " netbox"
202202 when :
203- - netbox_stable and netbox_stable_version is version('3.0.0', '>=')
204- or netbox_git and _netbox_git_contains_housekeeping.rc == 0
203+ - netbox_housekeeping_cron_enabled | bool
204+ - (netbox_stable and netbox_stable_version is version('3.0.0', '>=')
205+ and netbox_stable_version is version('4.4.0', '<'))
206+ or (netbox_git and _netbox_git_contains_housekeeping.rc == 0)
207+
208+ - name : Remove housekeeping cronjob when not applicable
209+ cron :
210+ name : " Netbox housekeeping"
211+ user : " {{ netbox_user }}"
212+ cron_file : " netbox"
213+ state : absent
214+ when :
215+ - not (
216+ (netbox_housekeeping_cron_enabled | bool)
217+ and (
218+ (netbox_stable and netbox_stable_version is version('3.0.0', '>=') and netbox_stable_version is version('4.4.0', '<'))
219+ or (netbox_git and _netbox_git_contains_housekeeping.rc == 0)
220+ )
221+ )
205222
206223- block :
207224 - name : Run database migrations for NetBox
You can’t perform that action at this time.
0 commit comments