Add ssh config to shell hosts for connecting servers

This commit is contained in:
Timo Makinen 2021-03-19 20:46:47 +00:00
parent b726e2e029
commit 8f30553fd8

View file

@ -67,3 +67,13 @@
- thunderbird
loop_control:
loop_var: role
- name: add home.foo.sh hosts to ssh config
copy:
dest: /etc/ssh/ssh_config.d/home.foo.sh.conf
content: |
Host *.home.foo.sh !gw.home.foo.sh
ProxyJump root@gw.home.foo.sh
mode: 0644
owner: root
group: "{{ ansible_wheel }}"