projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #25 from realraum/vlans
[noc.git]
/
ansible
/
roles
/
localconfig
/
templates
/
ssh
/
10r3.conf.j2
diff --git
a/ansible/roles/localconfig/templates/ssh/10r3.conf.j2
b/ansible/roles/localconfig/templates/ssh/10r3.conf.j2
index
e133de8
..
294af58
100644
(file)
--- a/
ansible/roles/localconfig/templates/ssh/10r3.conf.j2
+++ b/
ansible/roles/localconfig/templates/ssh/10r3.conf.j2
@@
-13,8
+13,8
@@
Host {{ hostvars[host].ansible_host }} r3-{{ host }} r3g-{{ host }} r3e-{{ host
{% if 'localconfig_ssh_config_user' in hostvars[host] %}
User {{ hostvars[host].localconfig_ssh_config_user }}
{% endif %}
{% if 'localconfig_ssh_config_user' in hostvars[host] %}
User {{ hostvars[host].localconfig_ssh_config_user }}
{% endif %}
-{% if 'localconfig_ssh_config_port' in hostvars[host] %}
- Port {{ hostvars[host].localconfig_ssh_config_port }}
+{% if hostvars[host].ansible_port != 22000 %}
+ Port {{ hostvars[host].ansible_port }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}