aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-17 13:50:11 +0800
committerAaron LI <aly@aaronly.me>2018-03-17 13:50:11 +0800
commitca8703974ede3950eaed0589dc55b7e606224f98 (patch)
tree257b282c2f3e871b0e8a1fe2ceff9705060e9970 /roles
parent097cb80499bbed7148fa3b77a555a43d915d39c5 (diff)
downloadansible-dfly-vps-ca8703974ede3950eaed0589dc55b7e606224f98.tar.bz2
znc: Add filter znc_makepass, improve templating with ipv4+ipv6
Diffstat (limited to 'roles')
-rw-r--r--roles/znc/templates/znc.conf.j214
1 files changed, 11 insertions, 3 deletions
diff --git a/roles/znc/templates/znc.conf.j2 b/roles/znc/templates/znc.conf.j2
index 71f3495..a45aa89 100644
--- a/roles/znc/templates/znc.conf.j2
+++ b/roles/znc/templates/znc.conf.j2
@@ -34,8 +34,16 @@ SSLCertFile = {{ znc.data_dir }}/znc.allinone.pem
<Listener {{ listener }}>
AllowIRC = true
AllowWeb = false
- IPv4 = {% if listener == "ipv4" %}true{% else %}false{% endif %}
- IPv6 = {% if listener == "ipv6" %}true{% else %}false{% endif %}
+ IPv4 = {% if listener == "ipv4" -%}
+ true
+ {% else -%}
+ false
+ {% endif -%}
+ IPv6 = {% if listener == "ipv6" -%}
+ true
+ {% else -%}
+ false
+ {% endif -%}
Port = {{ znc.port }}
SSL = true
</Listener>
@@ -43,7 +51,7 @@ SSLCertFile = {{ znc.data_dir }}/znc.allinone.pem
<User {{ znc.username }}>
Admin = true
- Pass = {{ znc.password }}
+ Pass = {{ znc.password | znc_makepass }}
Nick = {{ znc.username }}
AltNick = {{ znc.username }}_
Ident = {{ znc.username }}