Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrelamberty/xraspios-iac
:computer: Ansible playbook for Raspberry Pis: Simplify management and configuration.
https://github.com/alexandrelamberty/xraspios-iac
ansible infrastructure-as-code infrastructure-management raspberry-pi
Last synced: 2 days ago
JSON representation
:computer: Ansible playbook for Raspberry Pis: Simplify management and configuration.
- Host: GitHub
- URL: https://github.com/alexandrelamberty/xraspios-iac
- Owner: alexandrelamberty
- Created: 2022-09-25T11:21:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T17:36:08.000Z (10 months ago)
- Last Synced: 2024-12-27T19:48:06.029Z (about 2 months ago)
- Topics: ansible, infrastructure-as-code, infrastructure-management, raspberry-pi
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/alexandrelamberty/xraspios-iac/actions/workflows/ansible-lint.yml)
# Xraspios Infrastructure as Code
Ansible management for my Raspberry Pis.
## Introduction
This project automates the setup and configuration of Raspberry Pi infrastructure using Ansible. It installs Docker, Portainer, and other necessary components to manage and maintain Raspberry Pi clusters efficiently.
## Prerequisites
- Ansible installed on the control machine.
- Raspberry Pis accessible via SSH.
- Basic knowledge of Ansible and Raspberry Pi administration.## Project Structure
- `playbook.yaml`: Main Ansible playbook containing tasks for Raspberry Pi setup.
- `hosts.ini`: Inventory file listing Raspberry Pi hosts.
- `roles/`: Directory for organizing Ansible roles.
- `common/`: Role for common configurations across all Raspberry Pis.
- `tasks/`: Directory containing tasks specific to the `common` role.
- `main.yaml`: Main tasks file for the `common` role.
- `defaults/`: Directory containing default variables for the `common` role.
- `main.yaml`: Default variables file for the `common` role.
- `requirements.txt`: File listing Ansible collections or roles required by the project.## Usage
1. Clone this repository to your local machine.
2. Modify the `hosts.ini` file to include the IP addresses of your Raspberry Pis.
3. Execute the playbook using the following command:
```bash
ansible-playbook --inventory-file hosts.ini playbook.yml -u pi --ask-pass
```4. Access Portainer by navigating to in your web browser.