Merge "bridge: Disable writing known_hosts files"
This commit is contained in:
commit
76fc51c3b0
@ -29,3 +29,12 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
create: yes
|
||||
|
||||
# Disable writing out known_hosts globally on the bastion host.
|
||||
# Nothing on this host should be connecting to somewhere not codified
|
||||
# above; this prevents us possibly hiding that by caching values.
|
||||
- name: Disable known_hosts caching
|
||||
lineinfile:
|
||||
path: /etc/ssh/ssh_config
|
||||
regexp: 'UserKnownHostsFile'
|
||||
line: ' UserKnownHostsFile /dev/null'
|
||||
|
Loading…
x
Reference in New Issue
Block a user