Skip to content

Commit 31aa787

Browse files
committed
add local requirements file
1 parent fea39ad commit 31aa787

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tasks/deploy_netbox.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@
8686
- restart netbox.service
8787
- restart netbox-rqworker.service
8888

89+
# local_requirements.txt
90+
- name: Copy selected optional Python dependencies to local_requirements.txt
91+
ansible.builtin.copy:
92+
content: |
93+
{% for dep in _netbox_python_deps %}
94+
{{ dep }}
95+
{% endfor %}
96+
dest: "{{ netbox_current_path }}/local_requirements.txt"
97+
when: (_netbox_python_deps | length) > 0
98+
notify:
99+
- restart netbox.service
100+
- restart netbox-rqworker.service
101+
89102
- name: NetBox Configuration
90103
block:
91104
# configuration.py

0 commit comments

Comments
 (0)