This is auxiliary role for mpd_rpi one. The role and playbook are intended for:
- Original Raspbian installation is "minimized", i.e. redundant packages are deleted (e.g. xserver-xorg, etc.).
- Ansible itself.
- Running Raspberry Pi 2 machine with brand new Raspbian installed.
These variables are all situated in the vars/main.yml and have to be adjusted by you.
Name | Type | Description |
---|---|---|
rpimini_ssh_reset | boolean | If true, the SSH host keys are regenerated. It's useful to apply once only. |
The inventory file file has to contain mpd_hosts group, which is used in the role. You have to add your Raspberry Pi host name into this group. Example of inventory file:
[mpd_hosts]
my_rpi_for_mpd
None.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts:
- mpd_hosts
roles:
- rpi_mini
-
It's a good practice to reset default SSH host keys. It's useful to apply once only. Note the "rpimini_ssh_reset=true" usage.
ansible-playbook -i hosts rpi_mini.yml -u root --tags=ssh_reset --extra-vars "rpimini_ssh_reset=true"
-
To make all role tasks except SSH host keys resetting run following command.
ansible-playbook -i hosts rpi_mini.yml -u root
GPLv3