summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-06-14 22:23:17 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-06-14 22:23:47 +0100
commit88697df1e49e37ee3227dce234a6adbf5e35ccbc (patch)
treed28b6d6853e55c54d9c11306d770b520736c16fd
parent2a623fc8911ee20c74dff54739f384cc4680955e (diff)
downloadinfra-88697df1e49e37ee3227dce234a6adbf5e35ccbc.tar.gz
infra-88697df1e49e37ee3227dce234a6adbf5e35ccbc.tar.bz2
infra-88697df1e49e37ee3227dce234a6adbf5e35ccbc.zip
Mark gate as jumphost
-rw-r--r--host_vars/gate.ilvokhin.com/ssh.yml1
-rw-r--r--roles/ssh/tasks/main.yml8
2 files changed, 5 insertions, 4 deletions
diff --git a/host_vars/gate.ilvokhin.com/ssh.yml b/host_vars/gate.ilvokhin.com/ssh.yml
new file mode 100644
index 0000000..fead62f
--- /dev/null
+++ b/host_vars/gate.ilvokhin.com/ssh.yml
@@ -0,0 +1 @@
+jumphost: true
diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml
index f86464e..1ac5c99 100644
--- a/roles/ssh/tasks/main.yml
+++ b/roles/ssh/tasks/main.yml
@@ -21,8 +21,8 @@
- name: Configure ssh for Dmitry Ilvokhin
ansible.builtin.template:
src: misc/dotfiles/ssh/config.j2
- dest: "~{{ user }}/.ssh/config"
- owner: "{{ user }}"
+ dest: /home/d/.ssh/config
+ owner: d
mode: u+rw,g-rw,o-rw
when:
- jumphost
@@ -32,8 +32,8 @@
- name: Add ssh rc for Dmitry Ilvokhin
ansible.builtin.copy:
src: misc/dotfiles/ssh/rc
- dest: "~{{ user }}/.ssh/rc"
- owner: "{{ user }}"
+ dest: /home/d/.ssh/rc
+ owner: d
mode: u+rwx,g-rw,o-rw
when:
- jumphost