If you are using GitLab outside of the ILL, then you will need to use HTTPS and not SSH for clone/push/pull operations. SSH will work normally if you are using the VPN.

Commit c522004b authored by eric pellegrini's avatar eric pellegrini

added user expansion in file path

parent f9cb2750
......@@ -3,7 +3,7 @@
- name: remove offending ECDSA host key from known_hosts
known_hosts:
name: "{{ item }}"
path: "{{ lookup('env','HOME') }}/.ssh/known_hosts"
path: "~/.ssh/known_hosts | expanduser"
state: absent
loop: "{{ known_hosts }}"
when: known_hosts is defined
......@@ -11,7 +11,7 @@
- name: template the ssh config file
template:
src: "ssh_config.j2"
dest: "~/.ssh/config"
dest: "~/.ssh/config | expanduser"
mode: "700"
force: True
when: identity_files is defined
......
{% for config_host in identity_files %}
{% if config_host.private is defined %}
{% if (config_host.host is defined) %}
{% for host in config_host %}
Host "{{ host}}"
StrictHostKeyChecking no
IdentityFile "{{ config_host.private }}"
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment