The Wayback Machine - https://web.archive.org/web/20200904165138/https://github.com/sly74fr/raspbian-ansible
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

raspbian-ansible

Collection of Ansible roles to set up a Raspberry Pi.

License

GNU GPLv3 : see LICENSE

Goodies are also greatly appreciated if you feel like rewarding the job :)

Documentation

Flashing SD card content from a Mac

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=2018-06-27-raspbian-stretch-lite.img of=$DISK conv=sync
touch /Volumes/boot/ssh
diskutil unmountDisk $DISK
diskutil eject $DISK

Changing Raspberry Pi user 'pi' default password

ssh pi@XXX.XXX.XXX.XXX
passwd

Applying test.yml on a Raspberry Pi from a Mac with Ansible

pip install --upgrade pip
pip install ansible==2.6.2
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 !
You can’t perform that action at this time.