blob: dc1f461202e313ecb30a91946c655cb6264b7429 [file] [log] [blame]
---
# netbox tasks/Debian.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
# prereqs given here:
# https://netbox.readthedocs.io/en/stable/installation/3-netbox/#install-system-packages
- name: Install NetBox Prereqs
apt:
name:
- "python3"
- "python3-pip"
- "python3-venv"
- "python3-dev"
- "build-essential"
- "libxml2-dev"
- "libxslt1-dev"
- "libffi-dev"
- "libpq-dev"
- "libssl-dev"
- "zlib1g-dev"
state: "present"
update_cache: true
cache_valid_time: 3600
- name: Create systemd service unit files for NetBox services
template:
src: "{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
owner: "root"
group: "root"
mode: "0644"
with_items:
- "netbox.service"
- "netbox-rq.service"