blob: dc1f461202e313ecb30a91946c655cb6264b7429 [file] [log] [blame]
Zack Williams048c6832020-08-02 21:14:35 -07001---
2# netbox tasks/Debian.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7# prereqs given here:
8# https://netbox.readthedocs.io/en/stable/installation/3-netbox/#install-system-packages
9- name: Install NetBox Prereqs
10 apt:
11 name:
12 - "python3"
13 - "python3-pip"
14 - "python3-venv"
15 - "python3-dev"
16 - "build-essential"
17 - "libxml2-dev"
18 - "libxslt1-dev"
19 - "libffi-dev"
20 - "libpq-dev"
21 - "libssl-dev"
22 - "zlib1g-dev"
23 state: "present"
24 update_cache: true
25 cache_valid_time: 3600
26
27- name: Create systemd service unit files for NetBox services
28 template:
29 src: "{{ item }}.j2"
30 dest: "/etc/systemd/system/{{ item }}"
31 owner: "root"
32 group: "root"
33 mode: "0644"
34 with_items:
35 - "netbox.service"
36 - "netbox-rq.service"