fix: only ignore SSH host keys for local VMs

This commit is contained in:
Emmanuel BENOîT 2024-12-29 19:19:04 +01:00
parent 8c240c3478
commit c35a07f9a8
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
3 changed files with 7 additions and 6 deletions

View file

@ -1,3 +0,0 @@
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel ERROR

View file

@ -0,0 +1,4 @@
LogLevel ERROR
Host *.{{ domain_name }}
StrictHostKeyChecking no
UserKnownHostsFile /dev/null

View file

@ -602,9 +602,9 @@
path: /home/vagrant/.ssh/config
register: chezmoi_ssh_config
- name: Configure SSH for the vagrant user
when: not chezmoi_ssh_config.stat.exist
ansible.builtin.copy:
src: files/ssh_config
when: not chezmoi_ssh_config.stat.exists
ansible.builtin.template:
src: files/ssh_config.j2
dest: /home/vagrant/.ssh/config
# Configure Vim