From b378f14ab09c57713dc2c6f242fc2ca111063a01 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 6 Jul 2019 16:57:08 +0200 Subject: raspbian-template: update README for new user role --- roles/raspbian-template/README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/raspbian-template/README.md b/roles/raspbian-template/README.md index da232dd..1efc890 100644 --- a/roles/raspbian-template/README.md +++ b/roles/raspbian-template/README.md @@ -23,8 +23,12 @@ you and Ansible can log into it on boot. Now move your sd-card to the Raspberry Pi, connect an ethernet cable and lastly the power. -Once you figure out the ip address of the Raspberry Pi you can run -the following command to bootstrap it: +Once you figure out the ip address of the Raspberry Pi it's a good idea +to ssh into it manually just to accept the host key: +```sh +ssh pi@ +``` +Now run the following command to bootstrap it: ```sh ansible-playbook -D \ @@ -32,13 +36,14 @@ ansible-playbook -D \ -e ansible_host= \ -e ansible_ssh_user=pi \ -e ansible_ssh_pass=raspberry \ + -e '{"users":{"":"sudo"}}' \ raspbian-template.yml ``` Now go buy a Mate or something. This will take a long time.. Once it finishes you should have a fully upgraded Raspbian -with all the Labitat users and their ssh keys in place. +with your Labitat user and all the ssh keys in place. Hence you should now be able run ansible with your own ssh user. Eg. just @@ -46,6 +51,7 @@ ssh user. Eg. just ansible-playbook -D \ -i raspbian-template, \ -e ansible_host= \ + -e '{"users":{"":"sudo"}}' \ raspbian-template.yml ``` -- cgit v1.2.1