28 lines
1,001 B
Text
28 lines
1,001 B
Text
|
{% for host in ansible_play_hosts %}
|
||
|
{% if host != inventory_hostname %}
|
||
|
connect "{{ host }}" {
|
||
|
host = "{% if hostvars[host]['pahost'] is defined %}{{ hostvars[host]['pahost'] }}{% else %}{{ host }}{% endif %}";
|
||
|
send_password = "{{ hostvars[host]['linkpass'] }}";
|
||
|
accept_password = "{{ linkpass }}";
|
||
|
port = {% if hostvars[host]['paport'] is defined %}{{ hostvars[host]['paport'] }}{% else %}6697{% endif %};
|
||
|
class = "server";
|
||
|
{% if hostvars[host]['ssl_exists']['stat']['exists'] %}
|
||
|
fingerprint = "{{ hostvars[host]['ssl_fingerprint']['stdout'] }}";
|
||
|
{% endif %}
|
||
|
flags = {% if hostvars[host]['paport'] is not defined or hostvars[host]['paport'] != 6667 %}ssl, {% endif %}topicburst{% if autoconn is defined and autoconn == host %}, autoconn{% endif %};
|
||
|
};
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{% if services is defined %}
|
||
|
connect "services." {
|
||
|
host = "127.0.0.1";
|
||
|
send_password = "{{ services }}";
|
||
|
accept_password = "{{ services }}";
|
||
|
port = 6667;
|
||
|
class = "server";
|
||
|
flags = topicburst;
|
||
|
};
|
||
|
{% endif %}
|
||
|
|