aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2019-07-06 16:57:08 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2019-07-06 16:57:08 +0200
commitb378f14ab09c57713dc2c6f242fc2ca111063a01 (patch)
tree8e887e65d414790f7da268955da56bc1cf678490
parentd86f5eb1e784389e916ffa10619a49b8f42efe0b (diff)
downloadlabitat-ansible-b378f14ab09c57713dc2c6f242fc2ca111063a01.tar.gz
labitat-ansible-b378f14ab09c57713dc2c6f242fc2ca111063a01.tar.xz
labitat-ansible-b378f14ab09c57713dc2c6f242fc2ca111063a01.zip
raspbian-template: update README for new user role
-rw-r--r--roles/raspbian-template/README.md12
1 files 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@<ip address>
+```
+Now run the following command to bootstrap it:
```sh
ansible-playbook -D \
@@ -32,13 +36,14 @@ ansible-playbook -D \
-e ansible_host=<ip address> \
-e ansible_ssh_user=pi \
-e ansible_ssh_pass=raspberry \
+ -e '{"users":{"<your labitat user>":"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=<ip address> \
+ -e '{"users":{"<your labitat user>":"sudo"}}' \
raspbian-template.yml
```