File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 161
161
- netbox_stable and netbox_stable_version is version('2.10.0', '>=')
162
162
or netbox_git and _netbox_git_contains_trace_paths.rc == 0
163
163
164
+ - name : Build the local documentation
165
+ shell :
166
+ cmd : " {{ netbox_virtualenv_path }}/bin/mkdocs build"
167
+ chdir : " {{ netbox_current_path }}"
168
+ when :
169
+ - netbox_stable and netbox_stable_version is version('3.0.0', '>=')
170
+ or netbox_git and _netbox_git_contains_mkdocs.rc == 0
171
+
164
172
- name : Create a super user for NetBox
165
173
shell : " printf '{{ netbox_superuser_script }}' |\
166
174
{{ netbox_virtualenv_path }}/bin/python {{ netbox_current_path }}/netbox/manage.py shell"
Original file line number Diff line number Diff line change 51
51
changed_when : False
52
52
failed_when : " _netbox_git_contains_trace_paths.rc not in [0, 1]"
53
53
54
+ - name : Check existence of commit e165dca, introducing mkdocs command during update
55
+ shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^7058d6ca5ae2901383874bcea5fedad31e165dca'
56
+ args :
57
+ chdir : " {{ netbox_git_repo_path }}"
58
+ executable : /bin/bash
59
+ register : _netbox_git_contains_mkdocs
60
+ changed_when : False
61
+ failed_when : " _netbox_git_contains_mkdocs.rc not in [0, 1]"
62
+
54
63
- name : Check existence of commit d87ec82, introducing nightly housekeeping command
55
64
shell : ' set -o pipefail; git log --format=%H "{{ netbox_git_version }}" | grep ^d87ec82fe34d92a84ee6f2a97ba0a87a53eed015'
56
65
args :
You can’t perform that action at this time.
0 commit comments