An ansible playbook to setup a TimeMachine on Debian (Jessie).
Since there is currently not a package for netatalk 3 available for Jessie this playbook provides an easy way to build and install it.
Intented to use with raspberry pi and raspbian / jessie.
- ansible 2.0 or higher
- osx
- Download image from https://www.raspberrypi.org/downloads/raspbian/. I've used raspbian jessy lite
- Copy it to SD card:
diskutil list sudo diskutil unmountDisk /dev/disk2 sudo dd if=~/Downloads/2016-03-18-raspbian-jessie-lite.img of=/dev/disk2 bs=1m
- Boot raspberry pi, ssh to it, setup ssh key for user "pi", run raspi-config and resize root partition, reboot
- Attach usb disk to mac and run diskutil to determine device
diskutil list
- Format usb disk using HFS+ non-journaled. I created two partitions:
diskutil partitionDisk /dev/disk2 2 MBR HFS+ backups 650G HFS+ media 100G
- Determine volume UUID:
diskutil info disk2s1|grep "Volume UUID"
- unmount disk
diskutil unmountDisk /dev/disk2 Prepare ansible config ---------------------- 1. Create host_vars/raspberry_pi_host_name_or_ip file, copying from example.com. 2. Fill parameters in this file, see comments in file for instruction Run ---ansible-playbook -i "raspberry_pi_host_name_or_ip," playbook.yml