https://github.com/llorllale/tsc-hab
https://github.com/llorllale/tsc-hab
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/llorllale/tsc-hab
- Owner: llorllale
- License: mit
- Created: 2019-03-19T00:04:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T23:53:06.000Z (about 6 years ago)
- Last Synced: 2025-02-17T05:58:23.414Z (2 months ago)
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## First steps
1. A bootable microSD card with [Raspbian Stretch Lite](https://www.raspberrypi.org/downloads/raspbian/)
* You can use [Etcher](https://www.balena.io/etcher/) to burn the boot image to the SD card
2. Install ansible on your laptop.
3. Enable ssh on your pi. You should be able to `ssh [email protected]`.
* If setup is headless: mount `boot` partition in laptop and just create empty `ssh` file in `/`.
4. Connect pi to your network
* If setup is headless and you're connecting to wifi:
- Mount `rootfs` partition on laptop
- Enable wifi and specify path to wifi config by editing
/etc/network/interfaces
:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- Configure network in
wpa_supplicant.conf
(example):
network={
ssid="my_ssid"
key_mgmt=WPA-PSK
psk=lkjalfkjklj24NKLhj2l4j0B2vkjh2jh2klj4lkjlktjl2k4jtlk2jlk
}
- The raspberrypi will take about a minute to boot up and connect to the network.
## Run playbook
`ansible-playbook -i inventory hab.yaml`