From 3f42f5ee7bdd026584a8c218b5220e6adbad00a1 Mon Sep 17 00:00:00 2001 From: rsp2k Date: Sat, 9 Oct 2021 09:41:06 -0600 Subject: [PATCH 1/3] Update netbox version to 3.0.7 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 6cc7f23bcc5d4a6b3c8d1e86b6b049f308885ba7 Mon Sep 17 00:00:00 2001 From: rsp2k Date: Sat, 9 Oct 2021 22:44:08 -0600 Subject: [PATCH 2/3] Add daily housekeeping cron for 3.0 --- tasks/deploy_netbox.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 }}" From 423363648e30eecafbc79ab0a2d11aa4143143b9 Mon Sep 17 00:00:00 2001 From: rsp2k Date: Sat, 9 Oct 2021 22:46:36 -0600 Subject: [PATCH 3/3] Bump version to 3.0.7 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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