GithubHelp home page GithubHelp logo

calychas / ansible-pi Goto Github PK

View Code? Open in Web Editor NEW
139.0 11.0 15.0 43 KB

Setup your RPI from scratch with one command!

License: MIT License

ansible ansible-playbook home-assistant raspberry-pi rpi smarthome automation

ansible-pi's Introduction

Raspberry PI setup with Ansible

Setup your RPI from scratch with only one command!

Description

This repository contains Ansible tasks needed to setup the following modules on RPI:

  • periodical autoupgrade
  • bigger SWAP
  • GIT config
  • secure SSH and generate key
  • ZeroTier
  • pyenv
  • cups and airsane for printers
  • docker (also moves docker files to a USB to save storage on the internal SD card)
  • personal projects

Getting Started

Dependencies

  • Python (tested on 3.11.6 and Linux) on the host
  • Raspberry Pi with a debian-based OS (tested on Raspberry Pi OS 64-bit bookworm and RPI 3B+). See Raspberry Pi OS Imager if you didn't install it yet.

Installing

You need to install Ansible. For that use:

pip install -r requirements.txt

Copy and fill out the following files:

  1. inventory.yml.example as inventory.yml - change user and host
  2. main.yml.example as main.yml - supply missing vars, optionally comment out or edit the tasks

Executing

First debug the connection:

ansible-playbook -i inventory.yml debug.yml

If everything works, run the full suite:

ansible-playbook -i inventory.yml main.yml -vv

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

ansible-pi's People

Contributors

calychas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-pi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.