Skip to content

Ansible playbooks to configure one or many raspberry pi's out of the box.

Notifications You must be signed in to change notification settings

fsicardir/ansible-raspi-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-raspi-config

I made this simple Ansible playbooks to automate the initial setup of my raspberry pi cluster.

Prerequisites

  1. Install Ansible.
  2. You need your own ssh key in ~/.ssh/id\_rsa.pub.

Usage

  1. Set up your Ansible inventory in /etc/ansible/hosts. Mine, for example, looks like this:
    [raspi_cluster]
    192.168.0.104
    192.168.0.105
    192.168.0.106
    
  2. Edit group_vars/raspi_cluster and replace "fransic" with the name you want for your user.
  3. Run ansible-playbook raspi_user_and_key.yml. This will create your new user and setup your credentials.
  4. Run ansible-playbook raspi_config.yml. This will:
    • Set up sshd securely.
    • Change each hostname.
    • Remove the default pi user.
    • Update and upgrade all packages.
    • Install some basic packages.
    • Set up my dotfiles

About

Ansible playbooks to configure one or many raspberry pi's out of the box.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published