All Projects → garthvh → Ansible Raspi Playbooks

garthvh / Ansible Raspi Playbooks

Licence: mit
Playbooks for setup and updating of raspberry pi projects.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Ansible Raspi Playbooks

Raspberry Pi Dramble
Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
Stars: ✭ 1,317 (+712.96%)
Mutual labels:  automation, ansible, raspberry-pi
Awx
AWX Project
Stars: ✭ 10,469 (+6362.35%)
Mutual labels:  automation, ansible
Netbox As Ansible Inventory
Ansible dynamic inventory script for Netbox.
Stars: ✭ 161 (-0.62%)
Mutual labels:  automation, ansible
Rhcsa8env
This is a RHCSA8 study environment built with Vagrant/Ansible
Stars: ✭ 108 (-33.33%)
Mutual labels:  automation, ansible
Openbsd Cookbooks
Setup environment in OpenBSD using Ansible playbook
Stars: ✭ 80 (-50.62%)
Mutual labels:  automation, ansible
Tower Operator
DEPRECATED: This project was moved and renamed to: https://github.com/ansible/awx-operator
Stars: ✭ 87 (-46.3%)
Mutual labels:  automation, ansible
Awx Ha Instancegroup
Build AWX clustering on Docker Standalone Installation
Stars: ✭ 106 (-34.57%)
Mutual labels:  automation, ansible
Tortipi
Tor based Raspberry π hotspot
Stars: ✭ 76 (-53.09%)
Mutual labels:  automation, raspberry-pi
Macbook Playbook
Ansible playbook to prepare and maintain macOS for development and desktop use
Stars: ✭ 117 (-27.78%)
Mutual labels:  automation, ansible
Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (-0.62%)
Mutual labels:  automation, ansible
Ansible Rpi K8s Cluster
Deploy Raspberry Pi Kubernetes cluster using Ansible
Stars: ✭ 131 (-19.14%)
Mutual labels:  ansible, raspberry-pi
Rocket.chat.ansible
Deploy Rocket.Chat with Ansible!
Stars: ✭ 80 (-50.62%)
Mutual labels:  automation, ansible
Azure
Azure-related repository
Stars: ✭ 78 (-51.85%)
Mutual labels:  automation, ansible
Td4a
Template designer for automation
Stars: ✭ 139 (-14.2%)
Mutual labels:  automation, ansible
Rpicam
Raspberry PI Surveillance Automation
Stars: ✭ 77 (-52.47%)
Mutual labels:  ansible, raspberry-pi
Community.vmware
Ansible Collection for VMWare
Stars: ✭ 104 (-35.8%)
Mutual labels:  automation, ansible
Cisco ios
Ansible Network Cisco IOS Provider Role
Stars: ✭ 72 (-55.56%)
Mutual labels:  automation, ansible
Ansible For Network Engineers
Репозиторий книги "Ansible для сетевых инженеров". Книга в процессе переноса на readthedocs и обновления содержания на Ansible 2.9!
Stars: ✭ 74 (-54.32%)
Mutual labels:  automation, ansible
Hashi Up
bootstrap HashiCorp Consul, Nomad, or Vault over SSH < 1 minute
Stars: ✭ 113 (-30.25%)
Mutual labels:  automation, raspberry-pi
Tensor
Tensor - Comprehensive web-based automation framework and Centralized infrastructure management platform
Stars: ✭ 136 (-16.05%)
Mutual labels:  automation, ansible

Automated Raspberry Pi Setup and Updates

This is my collection of some pibakery xml, and ansible playbooks for setup and configuration of my assorted raspberry pi projects. Many common raspberry pi configuration options can be set using the raspi-config noint (non-interactive) mode and for anything else I have found the Ansible lineinfile module is perfect for automating configuration that is done via text files.

Astro Pi Playbook Screenshot

The goal is to do as little manual setup of my raspberry pi projects as possible as well as creating a record of the setup and configuration that can be run again if there is a problem with the SD card, or if I need build more copies of a project.

There is an easy built in way in Ansible to complete every step of the setup for my projects. There are a ton of well documented modules in ansible and I was able to easily handle apt, many raspi-config options, git, boot/config.txt settings, making reusable tasks and handlers, setting up wifi with a template, and collecting sensitive inputs with prompts.

Prepare the SD Card using PiBakery

The first step now for all devices is setting up the sd card basics with PiBakery a code blocks pi sd card setup app which is available on Windows, Mac and Linux. This lets you configure wifi, a public ssh key, locale, keyboard and hostname without having to connect or power on the pi. My settings for PiBakery are available at here. If your project is not too complex, you may be able to save all the required settings to xml using PiBakery and not even have to use Ansible.

PiBakery  Screenshot

Ansible Semaphore

Semaphore is an open source web ui for ansible that is an alternative to the Ansible Tower product offered by redhat. I run it in a container and find it a better fit for my home network than tower which needs a more powerful server and has device limits. Semaphore has a simple ui that maps nicely to the structures in Ansible and tracks playbook runs and groups inventory in sensible ways.

Semaphore Task Templates Screenshot

All of my playbooks run fine with or without a Semaphore server, I use it because it lets me keep better track of when playbooks run on what devices.

For playbooks that use vars_prompts I am passing the prompt variable into the playbook using the "Extra CLI Arguments" box on the semaphore task template. Using the -e (extra vars) CLI argument I am passing in the vars that would be prompted for when running the playbook in bash. I use PiBakery instead of the inital setup script now, but I have kept the new-default playbook up to date.

["-e","hostname='your_hostname' wifi_ssid='your_ssid' wifi_password='your_pass'"]

Project Playbooks wiki

I have added the individual project playbook documentation to the wiki for this repo.

Creating additional playbooks

I am happy to accept pull requests for additional playbooks or tasks for Pi projects

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].