ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 #
# !!! This file is managed by Ansible !!!
#

[common]
server_addr = {{ services.frpc.serverAddress }}
server_port = {{ services.frpc.serverPort }}
token       = {{ services.frpc.token }}
{% if services.frpc.dashboard.enable is defined and services.frpc.dashboard.enable is true %}
dashboard_port = {{ services.frpc.dashboard.port }}
dashboard_user = {{ services.frpc.dashboard.user }}
dashboard_pwd  = {{ services.frpc.dashboard.passwd }}
{% endif %}

{% for tunnel in services.frpc.tunnels %}
[{{ tunnel.name }}]
type = {{ tunnel.type }}
{% if tunnel.local_ip is defined %}
local_ip = {{ tunnel.local_ip }}
{% endif %}
{% if tunnel.local_port is defined %}
local_port = {{ tunnel.local_port }}
{% endif %}
{% if tunnel.remote_port is defined %}
remote_port = {{ tunnel.remote_port }}
{% endif %}
{% if tunnel.custom_domains is defined %}
custom_domains = {{ tunnel.custom_domains }}
{% endif %}
{% if tunnel.subdomain is defined %}
subdomain = {{ tunnel.subdomain }}
{% endif %}
{% if tunnel.locations is defined %}
locations = {{ tunnel.locations }}
{% endif %}

{% endfor %}