Skip to content

Commit

Permalink
add local requirements file
Browse files Browse the repository at this point in the history
  • Loading branch information
sol1-matt committed Dec 3, 2024
1 parent fea39ad commit 31aa787
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/deploy_netbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@
- restart netbox.service
- restart netbox-rqworker.service

# local_requirements.txt
- name: Copy selected optional Python dependencies to local_requirements.txt
ansible.builtin.copy:
content: |
{% for dep in _netbox_python_deps %}
{{ dep }}
{% endfor %}
dest: "{{ netbox_current_path }}/local_requirements.txt"
when: (_netbox_python_deps | length) > 0
notify:
- restart netbox.service
- restart netbox-rqworker.service

- name: NetBox Configuration
block:
# configuration.py
Expand Down

0 comments on commit 31aa787

Please sign in to comment.