Compare commits

..

No commits in common. "8ecc7bfbb64d791b9593f0e2caecf4f3a9f03618" and "5f997b1c093e4372fda019c16574ad643c30ce27" have entirely different histories.

View File

@ -1,44 +1,24 @@
# vim:ft=ansible: # vim:ft=ansible:
- name: deploy netbox - name: docker deploy netbox
module_defaults: docker_container:
docker_container: name: netbox
image: netboxcommunity/netbox:v3.0.2 image: netboxcommunity/netbox:v3.0.2
state: started user: 101
restart_policy: unless-stopped env:
pull: yes SUPERUSER_EMAIL: rehashedsalt@cock.li
user: 101 SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}"
env: SUPERUSER_API_TOKEN: "{{ secret_netbox_api_token }}"
SUPERUSER_EMAIL: rehashedsalt@cock.li SECRET_KEY: "{{ secret_netbox_secret_key }}"
SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}" ALLOWED_HOST: netbox.desu.ltd
SUPERUSER_API_TOKEN: "{{ secret_netbox_api_token }}" DB_HOST: 192.168.164.156
SECRET_KEY: "{{ secret_netbox_secret_key }}" DB_NAME: netbox-desultd
ALLOWED_HOST: netbox.desu.ltd DB_USER: netbox-desultd
DB_HOST: 192.168.164.156 DB_PASSWORD: "{{ secret_netbox_db_pass }}"
DB_NAME: netbox-desultd REDIS_HOST: redis
DB_USER: netbox-desultd REDIS_PORT: "6379"
DB_PASSWORD: "{{ secret_netbox_db_pass }}" networks:
REDIS_HOST: redis - name: web
REDIS_PORT: "6379" aliases: [ "netbox" ]
networks: volumes:
- name: web - /data/netbox/config:/config
aliases: [ "netbox" ] tags: [ docker, 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 ]