add netbox role for ensuring netbox is deployed as specified
All checks were successful
/ Ansible Lint (push) Successful in 1m43s
/ Ansible Lint (pull_request) Successful in 1m39s

The role takes over the deployment of netbox and its dependencies, while
still requiring the user to provide the netbox version, db password and
config as well as to set up a web server and handle stuff like creating
users, etc.
This commit is contained in:
June 2025-02-14 21:43:44 +01:00
commit cf33fb2e0e
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
5 changed files with 227 additions and 0 deletions

View file

@ -0,0 +1,12 @@
argument_specs:
main:
options:
netbox__version:
type: str
required: true
netbox__db_password:
type: str
required: true
netbox__config:
type: str
required: true

View file

@ -0,0 +1,11 @@
---
dependencies:
- role: redis
- role: postgresql
vars:
postgresql__dbs:
- name: netbox
owner: netbox
postgresql__users:
- name: netbox
password: "{{ netbox__db_password }}"