From 50d3ab29519db4e958262b52e8196b72b3bfe3a5 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 20 May 2017 21:52:18 -0500 Subject: [PATCH] Change make init to install public key on target --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cd7312c..1bee007 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ apply: ansible-playbook debian.yml -u root -i "127.0.0.1," init: - ansible-playbook debian.yml -u root -i "127.0.0.1," -k + ssh root@127.0.0.1 mkdir -p .ssh + cat ~/.ssh/id_rsa.pub | ssh root@127.0.0.1 "cat >> .ssh/authorized_key"