add uisp role

This commit is contained in:
uumas
2023-04-18 19:38:43 +03:00
parent 851504030a
commit 7504ba96d0
3 changed files with 54 additions and 0 deletions

1
roles/uisp/README.md Normal file
View File

@@ -0,0 +1 @@
Sets up an UISP docker container.

View File

@@ -0,0 +1,35 @@
---
argument_specs:
main:
short_description: UISP container
description: "Sets up an UISP docker container."
options:
ports:
description: "ports.netflow is used directly. Others passed to container role"
required: true
# All options after this will be passed directly to the container role
docker_service_suffix:
description: "Passed to container role"
required: false
docker_host_user:
description: "Passed to container role"
required: false
docker_additional_services:
description: "Passed to container role"
required: false
docker_volume_type:
description: "Passed to container role"
required: false
reverse_proxy_type:
description: "Passed to container role"
required: false
docker_vhost_domains:
description: "Passed to container role"
required: false
docker_entrypoint:
description: "Passed to container role"
required: false

18
roles/uisp/tasks/main.yml Normal file
View File

@@ -0,0 +1,18 @@
---
- name: UISP container
import_role:
name: container
vars:
docker_service: uisp
docker_proxy_target_protocol: https
docker_image: nico640/docker-unms
docker_image_http_port: 8443
docker_mounts:
- name: config
path: /config
docker_published_ports:
- "0.0.0.0:{{ ports.uisp.netflow }}:2055"
docker_env:
HTTPS_PORT: "8443"
PUBLIC_HTTPS_PORT: "443"