Configure jumphosts for adm hosts
This commit is contained in:
parent
c07a0fbd92
commit
9c802f9919
1 changed files with 12 additions and 0 deletions
|
@ -78,6 +78,18 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Configure jumphosts
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/ssh/ssh_config.d/jumphost.conf
|
||||
content: |
|
||||
Host *.iot.foo.sh !gw.iot.foo.sh
|
||||
ProxyJump gw.iot.foo.sh
|
||||
Host *.lan.foo.sh !gw.lan.foo.sh
|
||||
ProxyJump gw.lan.foo.sh
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Clone dns repo
|
||||
ansible.builtin.git:
|
||||
dest: /export/dns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue