Code Monkey home page Code Monkey logo

ansible4homelab's Introduction

ansible4homelab

Ansible config for my homelab

To do

I want to implement these features:

Larger and structural features

  • Automatic testing of the playbook with molecule in Github Actions
  • Ability to use same playbook for continuous deployment (CD) triggered from updates to my homelab repository here on Github

Move manual deployment to ansible

Steps

This playbook currently goes through these steps to deploy my entire homelab config

---
title: Initial deployment
---
flowchart TD
  main("main.yml")
  main_pre_tasks("Update apt cache")
  main_tasks("Setup Docker
  Clone Git Repos")
  setup_docker("Ensure Docker is setup")
  clone_repos("Clone homelab repository")
  clone_ha_repo("Clone repository with config for Home Assistant")

  main --> main_pre_tasks
  main_pre_tasks --> main_tasks

  main_tasks --> setup_docker
  main_tasks --> clone_repos  --> |If hostname includes HA| clone_ha_repo
Loading

Dependencies

This playbook currently uses two roles that I maintain for deploying HyperHDR and a local radio for streaming vinyl records.

Preparation

When running this playbook here is a list of things that needs to be done first, e.g. collection tokens and creating secrets

Credits

I have drawn a lot of inspiration from Jeff Geerling's work with ansible. I also use his book to learn ansible while moving my manual deployment to ansible.

The deployment of HyperHDR is adapted from ztnel's work. I am very thankful for them as their work made it very easy for me to do.

ansible4homelab's People

Contributors

aleksanderbl29 avatar renovate[bot] avatar

Watchers

 avatar

ansible4homelab's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

ansible-galaxy
collections/requirements.yml
  • aleksanderbl29.sonos_stream v0.2.2
  • aleksanderbl29.hyperhdr v1.0.0
  • ironicbadger.figurine 1.0.3
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-python v5

  • Check this box to trigger a request for Renovate to run again on this repository

Add CI

Molecule running docker tests to ensure idempotence of the playbook. Idempotence is the major and only priority at the moment.

Dev branches and testing for those could be interesting in the long run

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.