File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 221
221
when :
222
222
- netbox_stable and netbox_stable_version is version('3.2.2', '>')
223
223
and netbox_stable_version is version('3.7.0', '<')
224
- or netbox_git and _netbox_git_contains_add_clearcache.rc == 0
225
- and _netbox_git_contains_remove_clearcache != 0
224
+ or netbox_git and ( _netbox_git_contains_add_clearcache.rc == 0
225
+ and _netbox_git_contains_remove_clearcache.rc != 0 )
226
226
227
227
become : true
228
228
become_user : " {{ netbox_user }}"
Original file line number Diff line number Diff line change 89
89
changed_when : False
90
90
failed_when : " _netbox_git_contains_add_clearcache.rc not in [0, 1]"
91
91
92
+ - name : Check existence of commit 2d1f882, removing the clearcache command
93
+ shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^2d1f88272497ca72d2e1eca8e291c04538c6810e'
94
+ args :
95
+ chdir : " {{ netbox_git_repo_path }}"
96
+ executable : /bin/bash
97
+ register : _netbox_git_contains_remove_clearcache
98
+ changed_when : False
99
+ failed_when : " _netbox_git_contains_remove_clearcache.rc not in [0, 1]"
100
+
92
101
become : true
93
102
become_user : " {{ netbox_user }}"
94
103
95
- - name : Check existence of commit 2d1f882, removing the clearcache command
96
- shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^2d1f88272497ca72d2e1eca8e291c04538c6810e'
97
- args :
98
- chdir : " {{ netbox_git_repo_path }}"
99
- executable : /bin/bash
100
- register : _netbox_git_contains_remove_clearcache
101
- changed_when : False
102
- failed_when : " _netbox_git_contains_remove_clearcache.rc not in [0, 1]"
103
-
104
104
- name : Archive and extract snapshot of git repository
105
105
shell : ' set -o pipefail; git archive "{{ netbox_git_version }}" | tar -x -C "{{ netbox_git_deploy_path }}"'
106
106
args :
You can’t perform that action at this time.
0 commit comments