diff --git a/defaults/main.yml b/defaults/main.yml index f3ccdb1..4a538df 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- # defaults file for lae.netbox netbox_stable: false -netbox_stable_version: 2.9.9 +netbox_stable_version: 3.0.7 netbox_stable_uri: "https://github.com/netbox-community/netbox/archive/v{{ netbox_stable_version }}.tar.gz" netbox_git: false diff --git a/tasks/deploy_netbox.yml b/tasks/deploy_netbox.yml index 66b6a38..8c4dafd 100644 --- a/tasks/deploy_netbox.yml +++ b/tasks/deploy_netbox.yml @@ -151,5 +151,11 @@ app_path: "{{ netbox_current_path }}/netbox" virtualenv: "{{ netbox_virtualenv_path }}" + - name: Daily Housekeeping Cron Job + ansible.builtin.cron: + name: "daily netbox housekeeping" + special_time: daily + job: "{{ netbox_virtualenv_path }}/bin/python {{ netbox_current_path }}/netbox/manage.py housekeeping" + become: true become_user: "{{ netbox_user }}"