您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

13 行
607B

  1. {% for hostname in groups.all %}
  2. Host {{hostname}}
  3. {% if ssh_over_tor and ('ansible_local' in hostvars[hostname]) and ('tor' in hostvars[hostname].ansible_local) and ('ssh' in hostvars[hostname].ansible_local.tor.tor_hidden_services_hostnames) %}
  4. HostName {{hostvars[hostname].ansible_local.tor.tor_hidden_services_hostnames.ssh}}
  5. ProxyCommand nc -x 127.0.0.1:9050 -X5 %h %p
  6. {% elif 'external_ip' in hostvars[hostname] %}
  7. HostName {{hostvars[hostname].external_ip}}
  8. {% endif %}
  9. {% if 'ssh_proxy_jump' in hostvars[hostname] %}
  10. ProxyJump {{hostvars[hostname].ssh_proxy_jump}}
  11. {% endif %}
  12. {% endfor %}