File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 242242 or netbox_git and ( _netbox_git_contains_add_clearcache.rc == 0
243243 and _netbox_git_contains_remove_clearcache.rc != 0 )
244244
245+ - name : Rebuild the search cache (lazily)
246+ django_manage :
247+ command : " reindex --lazy"
248+ app_path : " {{ netbox_current_path }}/netbox"
249+ virtualenv : " {{ netbox_virtualenv_path }}"
250+ when :
251+ - netbox_stable and netbox_stable_version is version('3.4.4', '>')
252+ or netbox_git and _netbox_git_contains_reindex_lazy.rc == 0
253+
245254 become : true
246255 become_user : " {{ netbox_user }}"
Original file line number Diff line number Diff line change 9898 changed_when : False
9999 failed_when : " _netbox_git_contains_remove_clearcache.rc not in [0, 1]"
100100
101+ - name : Check existence of commit 5a4d8a7, adding the reindex lazy command
102+ shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^5a4d8a71075a4529be8d5ef22d76d69861240f45'
103+ args :
104+ chdir : " {{ netbox_git_repo_path }}"
105+ executable : /bin/bash
106+ register : _netbox_git_contains_reindex_lazy
107+ changed_when : False
108+ failed_when : " _netbox_git_contains_reindex_lazy.rc not in [0, 1]"
109+
101110 become : true
102111 become_user : " {{ netbox_user }}"
103112
You can’t perform that action at this time.
0 commit comments