Add ssh config to shell hosts for connecting servers
This commit is contained in:
parent
b726e2e029
commit
8f30553fd8
1 changed files with 10 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue