A simple ansible playbook for configuring a new pi instance (made for raspbian)
Running the playbook
In order to run the playbook, the following requirements have to be met:
- Ansible must be installed on your machine
- An SSH connection must be established between your machine and the Pi, also allowing passwordless authentication. I won't go in detail about this here.
- Your Pi must be added to /etc/ansible/hosts (with the appropriate role) An example entry could be:
[webservers]
raspberrypi2 ansible_ssh_host=192.168.0.167 ansible_ssh_port=22
Run the shell script to execute