Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sly74fr/raspbian-ansible
Raspberry Pi setup with Ansible
https://github.com/sly74fr/raspbian-ansible
ansible azerty datetime dhcp-server firewall locale ntp raspberry-pi raspberrypi raspbian raspbian-ansible snmp swap timezone tio update updating-raspberry-pi zabbix
Last synced: 3 months ago
JSON representation
Raspberry Pi setup with Ansible
- Host: GitHub
- URL: https://github.com/sly74fr/raspbian-ansible
- Owner: sly74fr
- License: gpl-3.0
- Created: 2018-08-27T11:51:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T15:51:56.000Z (7 months ago)
- Last Synced: 2024-06-06T17:45:53.846Z (7 months ago)
- Topics: ansible, azerty, datetime, dhcp-server, firewall, locale, ntp, raspberry-pi, raspberrypi, raspbian, raspbian-ansible, snmp, swap, timezone, tio, update, updating-raspberry-pi, zabbix
- Language: Python
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
raspbian-ansible
================Collection of Ansible roles to set up a Raspberry Pi (or any Debian by the way) from scratch.
License
=======GNU GPLv3 : see [LICENSE](../master/LICENSE)
Goodies are also greatly appreciated if you feel like rewarding the job :)
Documentation
=============## Flashing an SD card from a Mac
```console
diskutil list # -> DISK=/dev/diskXXX
DISK=/dev/diskXXX
diskutil unmountDisk $DISK
sudo diskutil partitionDisk $DISK 1 MBR "Free" "%noformat%" 100%
sudo dd bs=1m if=2024-03-15-raspios-bookworm-arm64-lite.img of=$DISK status=progress
diskutil unmountDisk $DISK
diskutil eject $DISK
```For further customization, please have a look at the [official Raspberry Pi documentation](https://www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi).
## Applying setup.yml from a Mac with Ansible
```console
pip install --upgrade pip
pip install ansible==2.16.4
git clone https://github.com/sly74fr/raspbian-ansible.git
cd raspbian-ansible/
ansible-playbook -i YOUR_INVENTORY setup.yml -kK -f 10 # At least once !
```