Activate pipenv on controller:
pipenv shell --three
pipenv install
To create encrypted passwords for the playbook use ansible-vault.
First add ansible vault password to vautl_password_file
Then create encrypted user passwords:
ansible-vault encrypt_string 'ANSIBLE_PASSWD' -n ansible_user_pass >> roles/base/vars/user.yml
ansible-vault encrypt_string 'ROOT_PASSWD' -n root_user_pass >> roles/base/vars/user.yml
- Flash Raspberry Pi OS to SD Card
- touch a File SSH to
/boot/
- set static IP by configuring
/rootfs/etc/dhcpcd.conf
- boot the rpi
scp scripts/rpi-init.sh pi@PI_IP_ADDRESS:/home/pi/
ssh pi@PI_IP_ADDRESS
sudo ./rpi-init.sh
- Go for a run
sudo reboot
- Check ansible inventory
- Check with
ansible node -m ping