Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.87 KB

README.md

File metadata and controls

65 lines (44 loc) · 1.87 KB

Rasperry Pi minimal

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.).

Requirements

  1. Ansible itself.
  2. Running Raspberry Pi 2 machine with brand new Raspbian installed.

Role Variables

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.

Inventory

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

Dependencies

None.

Example Playbook

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

Usage examples

  1. 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" 
    
  2. To make all role tasks except SSH host keys resetting run following command.

     ansible-playbook -i hosts rpi_mini.yml -u root 
    

License

GPLv3