Skip to content

Commit 45e3009

Browse files
committed
docs: explain why host_key_checking is disabled in ansible.cfg
Every other security trade-off in this repo has an inline rationale; this one didn't. Documents why it's off and what it costs you.
1 parent 6c950c4 commit 45e3009

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ansible/ansible.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[defaults]
22
inventory = inventory
3+
# Disabled because destroying and recreating an instance (make down; make up)
4+
# reissues a fresh host key on the same/a reused IP, which would otherwise
5+
# trip Ansible's "REMOTE HOST IDENTIFICATION HAS CHANGED" refusal every time.
6+
# Trade-off: this skips MITM detection via SSH host key pinning. Verify
7+
# public_ip out-of-band (e.g. your cloud console) if that matters to you.
38
host_key_checking = False
49
retry_files_enabled = False
510
interpreter_python = auto_silent

0 commit comments

Comments
 (0)