Skip to content
/ rpi_mini Public

Ansible role for making original Raspbian installetion as minimal as possible. This is auxiliary role for mpd_rpi one.

License

Notifications You must be signed in to change notification settings

igsol/rpi_mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ansible role for making original Raspbian installetion as minimal as possible. This is auxiliary role for mpd_rpi one.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published