File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 24
24
changed_when : False
25
25
failed_when : " _netbox_git_contains_issue_2239_fix.rc not in [0, 1]"
26
26
27
+ - name : Check existence of commit 3590ed3, renaming webhooks to tasks
28
+ shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^3590ed378d161dd724fad2dc73ff56da746352f8'
29
+ args :
30
+ chdir : " {{ netbox_git_repo_path }}"
31
+ executable : /bin/bash
32
+ register : _netbox_git_contains_tasks_rename
33
+ changed_when : False
34
+ failed_when : " _netbox_git_contains_tasks_rename.rc not in [0, 1]"
35
+
27
36
- name : Archive and extract snapshot of git repository
28
37
shell : ' set -o pipefail; git archive "{{ netbox_git_version }}" | tar -x -C "{{ netbox_git_deploy_path }}"'
29
38
args :
Original file line number Diff line number Diff line change
1
+ {{ ansible_managed | comment }}
1
2
import json
2
3
import os
3
- {{ ansible_managed | comment }}
4
4
5
5
{% if netbox_metrics_enabled % }
6
6
if "prometheus_multiproc_dir" in os .environ :
@@ -30,7 +30,13 @@ DATABASE = {
30
30
}
31
31
32
32
REDIS = {
33
+ {# https://github.com/netbox-community/netbox/pull/4366 #}
34
+ {% if netbox_stable and netbox_stable_version is version ('2.7.11' , '>=' ) or
35
+ netbox_git and _netbox_git_contains_tasks_rename % }
36
+ 'tasks' : {
37
+ {% else % }
33
38
'webhooks' : {
39
+ {% endif % }
34
40
'HOST' : '{{ netbox_redis_host }}' ,
35
41
'PORT' : {{ netbox_redis_port }},
36
42
'PASSWORD' : '{{ netbox_redis_password }}' ,
You can’t perform that action at this time.
0 commit comments