Change make init to install public key on target
This commit is contained in:
parent
c33ca3d80c
commit
50d3ab2951
3
Makefile
3
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"
|
||||
|
Reference in New Issue
Block a user