votum.ngrok
rol de ansible para ngrok
Este rol descargará e instalará el binario de ngrok y añadirá una configuración de túnel personalizada.
Requisitos
Ninguno
Variables del rol
Nombre | Predeterminado | Descripción |
---|---|---|
ngrok_download | https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
ngrok_path_download_tmp | /tmp | |
ngrok_path_install | /opt/ngrok | |
ngrok_path_bin | /usr/bin/ngrok | |
ngrok_path_init | /etc/init.d | |
ngrok_path_systemd | /lib/systemd/system | |
ngrok_auth_token | requerido, debe ser configurado en las variables del playbook | |
ngrok_console_ui | falso | |
ngrok_region | eu | |
ngrok_tunnels | [] | |
ngrok_user | opcional, predeterminado si no se establece: ansible_ssh_user | |
ngrok_start_tunnel | --all | túneles que se ejecutarán en el servicio (opcional), por defecto se iniciarán todos los túneles |
ngrok_install_as_service | falso | crea un script de inicio |
ngrok_service_name | ngrok | |
ngrok_daemon | {{ ngrok_path_bin }} | |
ngrok_daemon_opts | start {{ ngrok_start_tunnel }} --config /home/{{ ngrok_user }}/.ngrok2/ngrok.yml | |
ngrok_pidfile | /var/run/ngrok.pid |
Ejemplo de configuración de un túnel:
ngrok_tunnels:
- name: "nombre-personalizado-para-tunel"
hostname: "mi-host-personalizado.ngrok.io" # opcional
subdomain: "mi-subdominio-personalizado" # subdominio para ngrok.io (opcional), solo se usa si no se define el hostname.
# si tampoco se define el subdominio, ngrok usa el nombre del túnel como subdominio
address: "mi.direccion.local:80"
proto: "http" # opcional, predeterminado: http
bind_tls: both # opcional, predeterminado: both (false: solo http, true: solo https, both: http y https)
auth:
username: "usuarioNgrok"
password: "contraseñaSecreta"
Dependencias
Ninguna
Ejemplo de Playbook
Incluir un ejemplo de cómo usar tu rol (por ejemplo, con variables pasadas como parámetros) es siempre útil para los usuarios:
- hosts: servidores
roles:
- { role: "votum.ngrok" }
Licencia
Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para ver el texto completo de la licencia.
Información del autor
Acerca del proyecto
Role for ngrok installation and tunnel configuration
Instalar
ansible-galaxy install votum.ngrok
Licencia
mit
Descargas
7.2k
Propietario