Change make init to install public key on target

This commit is contained in:
Gary Talent 2017-05-20 21:52:18 -05:00
parent c33ca3d80c
commit 50d3ab2951

View File

@ -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"