From 0ec90a63817f880f3bc065f169735bf399dabc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 27 Sep 2025 22:16:12 +0000 Subject: [PATCH] added mylimbo.globals roles --- README.md | 22 +++++++++---------- ansible.cfg | 8 +++++++ .../rclone-docker-plugin.playbook.yaml | 0 ansible/requirements.yml | 4 ++++ site.yml => ansible/site.yml | 0 5 files changed, 22 insertions(+), 12 deletions(-) rename rclone-docker-plugin.playbook.yaml => ansible/rclone-docker-plugin.playbook.yaml (100%) create mode 100644 ansible/requirements.yml rename site.yml => ansible/site.yml (100%) diff --git a/README.md b/README.md index 34b5c7f..9b80372 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,6 @@ The server operates within its own VLAN (`homesrv`) but requires controlled comm ## Table of Contents -- [Services](#services) - - [myInfra stack](#myinfra-stack) - - [docker](#docker) - - [rclone plugin](#rclone-plugin) - - [nginx](#nginx) - - [Home Assistant](#home-assistant) - - [Lyrion Music Server (LMS)](#lyrion-music-server-lms) - - [Mosquitto](#mosquitto) - - [Wyoming](#wyoming) - - [Zigbee2mqtt](#zigbee2mqtt) - [Host](#host) - [Proxmox - container](#proxmox---container) - [OS](#os) @@ -26,9 +16,17 @@ The server operates within its own VLAN (`homesrv`) but requires controlled comm - [Development, Maintenance and Deployment](#development-maintenance-and-deployment) - [Docker context](#docker-context) -## Services +### Setup system -### myInfra stack +**Install/Update requirements (collections and roles):** + +``` bash +ansible-galaxy collection install -r ./ansible/requirements.yml --force +``` + +``` bash +ansible-playbook ./ansible/site.yml +``` docker, promtail and telegraf configuration [maintained by ansible playbook](./site.yml). diff --git a/ansible.cfg b/ansible.cfg index 7837ffe..dbdf708 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,10 @@ [defaults] inventory = ansible/inventory.yml +# Chick-Fil-A would like a word... +nocows = True + +# Installs collections into [current dir]/ansible_collections/namespace/collection_name +collections_paths = ./ansible/collections + +# Installs roles into [current dir]/roles/namespace.rolename +roles_path = ./ansible/roles \ No newline at end of file diff --git a/rclone-docker-plugin.playbook.yaml b/ansible/rclone-docker-plugin.playbook.yaml similarity index 100% rename from rclone-docker-plugin.playbook.yaml rename to ansible/rclone-docker-plugin.playbook.yaml diff --git a/ansible/requirements.yml b/ansible/requirements.yml new file mode 100644 index 0000000..c71e353 --- /dev/null +++ b/ansible/requirements.yml @@ -0,0 +1,4 @@ +collections: + - name: mylimbo.globals + source: ssh://git@git.limbosolutions.com:2222/myLimbo/ansible.collection.globals.git + type: git diff --git a/site.yml b/ansible/site.yml similarity index 100% rename from site.yml rename to ansible/site.yml