I have knocked up a playbook here: https://github.com/davidwallis3101/HGConfigure/blob/master/ansible/playbook.yml for installing homegenie from a blank rpi image.
Download the image and write to the sdcard
create an empty ssh file on the boot partition
Insert sd card and boot pi, noting ip address.
on a host machine running linux (I use debian within windows 10 - available from the app store) - Not on your PI… don’t even bother logging in to the pi… there is no need.
# Install ansible etc sudo apt-get update sudo apt-get install python-pip git python-dev sshpass -y sudo pip install ansible git clone https://github.com/davidwallis3101/HGConfigure.git cd HGConfigure/ansible/ # execute the playbook against your pi ansible-playbook playbook.yml -i 192.168.0.81, --ask-pass --become -c paramiko
where 192.168.0.81 is your ip…
alternatively - edit the hosts file to contain all your nodes and execute:
ansible-playbook playbook.yml -i hosts --ask-pass --become -c paramiko
NB: You may want to edit the line that creates a user called davidw
I know its not the best but I am playing around with ansible for work and this looked like a good test…
This will install mono, dotnet core, powershell core, homegenie, fail2ban other pre-reqs and configure systemd.
My plan is to then automate the restoration of my configuration, but currently that is done with powershell… also in this repo…
I also have a script for getting the latest release which may be of use: