installs ansible to raspbian and configures sensible defaults
brew tap matti/tap
brew cask install virtualbox_and_extensionpack_4328100309
brew install sshpass
brew install ssh-copy-id
vagrant up
sshpass -p raspbian ssh-copy-id -i ~/.ssh/id_rsa.pub -p 2222 [email protected]
./ansible_deps.sh 127.0.0.1 2222
echo "[raspbian-local]" > hosts_local
echo "127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user=root" >> hosts_local
ansible -i hosts_local -m ping all
sudo diskutil unmountDisk disk2; pv -petra raspbian_8gb_pi2.img | sudo dd bs=4m of=/dev/rdisk2
sshpass -p raspbian ssh-copy-id -i ~/.ssh/id_rsa.pub -p 22 root@pi
./ansible_deps.sh pi 22
echo "[raspbian]" > hosts
echo "pi ansible_ssh_port=22 ansible_ssh_user=root" >> hosts
ansible -i hosts -m ping all
ansible-galaxy install -r requirements.yml
ansible-playbook site.yml -i hosts_local
ansible-playbook site.yml -i hosts