Compare commits
2 Commits
5f997b1c09
...
8ecc7bfbb6
Author | SHA1 | Date | |
---|---|---|---|
8ecc7bfbb6 | |||
8d59a1b201 |
@ -1,24 +1,44 @@
|
||||
# vim:ft=ansible:
|
||||
- name: docker deploy netbox
|
||||
docker_container:
|
||||
name: netbox
|
||||
image: netboxcommunity/netbox:v3.0.2
|
||||
user: 101
|
||||
env:
|
||||
SUPERUSER_EMAIL: rehashedsalt@cock.li
|
||||
SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}"
|
||||
SUPERUSER_API_TOKEN: "{{ secret_netbox_api_token }}"
|
||||
SECRET_KEY: "{{ secret_netbox_secret_key }}"
|
||||
ALLOWED_HOST: netbox.desu.ltd
|
||||
DB_HOST: 192.168.164.156
|
||||
DB_NAME: netbox-desultd
|
||||
DB_USER: netbox-desultd
|
||||
DB_PASSWORD: "{{ secret_netbox_db_pass }}"
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
networks:
|
||||
- name: web
|
||||
aliases: [ "netbox" ]
|
||||
volumes:
|
||||
- /data/netbox/config:/config
|
||||
tags: [ docker, netbox ]
|
||||
- name: deploy netbox
|
||||
module_defaults:
|
||||
docker_container:
|
||||
image: netboxcommunity/netbox:v3.0.2
|
||||
state: started
|
||||
restart_policy: unless-stopped
|
||||
pull: yes
|
||||
user: 101
|
||||
env:
|
||||
SUPERUSER_EMAIL: rehashedsalt@cock.li
|
||||
SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}"
|
||||
SUPERUSER_API_TOKEN: "{{ secret_netbox_api_token }}"
|
||||
SECRET_KEY: "{{ secret_netbox_secret_key }}"
|
||||
ALLOWED_HOST: netbox.desu.ltd
|
||||
DB_HOST: 192.168.164.156
|
||||
DB_NAME: netbox-desultd
|
||||
DB_USER: netbox-desultd
|
||||
DB_PASSWORD: "{{ secret_netbox_db_pass }}"
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
networks:
|
||||
- name: web
|
||||
aliases: [ "netbox" ]
|
||||
volumes:
|
||||
- /data/netbox/media:/opt/netbox/netbox/media:z
|
||||
block:
|
||||
- name: docker deploy netbox
|
||||
docker_container:
|
||||
name: netbox
|
||||
tags: [ docker, netbox ]
|
||||
- name: docker deploy netbox worker
|
||||
docker_container:
|
||||
name: netbox-worker-1
|
||||
command:
|
||||
- /opt/netbox/venv/bin/python
|
||||
- /opt/netbox/netbox/manage.py
|
||||
- rqworker
|
||||
tags: [ docker, netbox ]
|
||||
- name: docker deploy netbox housekeeping
|
||||
docker_container:
|
||||
name: netbox-housekeeping
|
||||
command: /opt/netbox/housekeeping.sh
|
||||
tags: [ docker, netbox ]
|
||||
|
Loading…
Reference in New Issue
Block a user