From b03de5dd745a4b8eed6a65ea0021cd68de86cb11 Mon Sep 17 00:00:00 2001 From: Dale Anderson Date: Thu, 25 Feb 2021 01:35:31 -0800 Subject: [PATCH] Only use the specified SSH key to connect --- ansible.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index d1b111f..5da9439 100755 --- a/ansible.cfg +++ b/ansible.cfg @@ -21,5 +21,5 @@ become = false interpreter_python = auto [ssh_connection] -ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ServerAliveInterval=10 -control_path = ~/.ssh/ansible-%%r@%%h:%%p \ No newline at end of file +ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ServerAliveInterval=10 -o IdentitiesOnly=yes +control_path = ~/.ssh/ansible-%%r@%%h:%%p