diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-01 11:26:45 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-01 11:26:45 +0300 |
commit | c2fe575f8f8e83c8fec1eedcd45a070b5407bc3e (patch) | |
tree | 7976d5aee0c15c68a6a54021de700615ba459bd0 | |
parent | a40a4fb65587ac85e38e853fc1d5db18530d3760 (diff) | |
download | ick2-ansible-c2fe575f8f8e83c8fec1eedcd45a070b5407bc3e.tar.gz |
configure worker to access git.liw.fi using the right port
Sponsored-by: author
-rw-r--r-- | roles/ick-worker/files/ssh_config | 2 | ||||
-rw-r--r-- | roles/ick-worker/tasks/main.yml | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/ick-worker/files/ssh_config b/roles/ick-worker/files/ssh_config new file mode 100644 index 0000000..f63f188 --- /dev/null +++ b/roles/ick-worker/files/ssh_config @@ -0,0 +1,2 @@ +Host git.liw.fi + Port 12765 diff --git a/roles/ick-worker/tasks/main.yml b/roles/ick-worker/tasks/main.yml index f945f54..8ba7b6a 100644 --- a/roles/ick-worker/tasks/main.yml +++ b/roles/ick-worker/tasks/main.yml @@ -45,3 +45,11 @@ dest: /etc/ssh/ssh_config state: present line: "StrictHostKeyChecking no" + +- name: configure ssh client to use the right port for git.liw.fi + copy: + src: ssh_config + dest: /home/_ickwm/.ssh/config + owner: _ickwm + group: _ickwm + mode: 0644 |