From 972d7da4cfaac8488d059e2d4074619cd73263a4 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Mon, 1 Mar 2021 13:19:44 +0000 Subject: [PATCH] updating hosts to use ssh key --- hosts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts b/hosts index e17e1a4..2447e00 100644 --- a/hosts +++ b/hosts @@ -1,6 +1,8 @@ +--- all: - hosts: - 116.203.200.219: - vars: - ansible_user: "root" - ansible_ssh_pass: "4Oa;Db5c!" + hosts: + 116.203.200.219: + vars: + ansible_user: "root" + # ansible_ssh_pass: "4Oa;Db5c!" + ansible_ssh_private_key_file: "~/.ssh/id_rsa"