Implemented auto creation of role groups

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-10 23:40:18 +02:00
parent 1f4dee49bc
commit 292918da81
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
5 changed files with 14 additions and 8 deletions

View File

@ -5,8 +5,7 @@ USERS_OUT := ./group_vars/all/03_users.yml
USERS_SCRIPT := ./cli/generate/defaults/users.py
INCLUDES_SCRIPT := ./cli/generate/conditional_role_include.py
# Define the prefixes for which we want individual role-include files
INCLUDE_GROUPS := "drv-" "svc-" "desk-" "web-" "util-"
INCLUDE_GROUPS := $(shell python3 main.py meta invokable_paths -s "-" | tr '\n' ' ')
# Directory where these include-files will be written
INCLUDES_OUT_DIR := ./tasks/groups

View File

@ -23,6 +23,4 @@ galaxy_info:
issue_tracker_url: "https://github.com/kevinveenbirkenbach/portfolio/issues"
documentation: "https://github.com/kevinveenbirkenbach/portfolio#readme"
logo:
class: "fa-solid fa-briefcase"
run_after:
- web-svc-simpleicons
class: "fa-solid fa-briefcase"

View File

@ -26,8 +26,9 @@ galaxy_info:
repository: "https://s.veen.world/cymais"
issue_tracker_url: "https://s.veen.world/cymaisissues"
documentation: "https://s.veen.world/cymais"
run_after:
- web-app-matomo
# This propably leads to problems at a point, @todo solve it
# run_after:
# - web-app-matomo
dependencies:
- srv-web-7-6-https
- gen-git

View File

@ -1,5 +1,13 @@
---
## pc applications
- name: "setup docker role includes for desktop pc"
include_tasks: "./tasks/groups/{{ item }}-roles.yml"
loop:
- util-desk
- desk
loop_control:
label: "{{ item }}-roles.yml"
- name: general host setup
when: ("personal_computers" in group_names)
include_role:

View File

@ -11,7 +11,7 @@
- mon-bot-btrfs
- maint-btrfs-auto-balancer
- name: "Integrate Docker Role includes"
- name: "Integrate Docker Server Roles"
include_tasks: "./tasks/groups/{{ item }}-roles.yml"
loop:
- svc