Skip to content

Commit 305d941

Browse files
authored
Merge pull request #82 from lae/feature/clearsessions
Run manage.py clearsessions on deploy
2 parents a965b5c + 3982005 commit 305d941

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/deploy_netbox.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@
156156
app_path: "{{ netbox_current_path }}/netbox"
157157
virtualenv: "{{ netbox_virtualenv_path }}"
158158

159+
- name: Clear expired user sessions in NetBox
160+
django_manage:
161+
command: clearsessions
162+
app_path: "{{ netbox_current_path }}/netbox"
163+
virtualenv: "{{ netbox_virtualenv_path }}"
164+
159165
- name: Populate NetBox with initial data
160166
django_manage:
161167
command: loaddata

0 commit comments

Comments
 (0)