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 USERS_SCRIPT := ./cli/generate/defaults/users.py
INCLUDES_SCRIPT := ./cli/generate/conditional_role_include.py INCLUDES_SCRIPT := ./cli/generate/conditional_role_include.py
# Define the prefixes for which we want individual role-include files INCLUDE_GROUPS := $(shell python3 main.py meta invokable_paths -s "-" | tr '\n' ' ')
INCLUDE_GROUPS := "drv-" "svc-" "desk-" "web-" "util-"
# Directory where these include-files will be written # Directory where these include-files will be written
INCLUDES_OUT_DIR := ./tasks/groups INCLUDES_OUT_DIR := ./tasks/groups

View File

@ -24,5 +24,3 @@ galaxy_info:
documentation: "https://github.com/kevinveenbirkenbach/portfolio#readme" documentation: "https://github.com/kevinveenbirkenbach/portfolio#readme"
logo: logo:
class: "fa-solid fa-briefcase" class: "fa-solid fa-briefcase"
run_after:
- web-svc-simpleicons

View File

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

View File

@ -1,5 +1,13 @@
--- ---
## pc applications ## 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 - name: general host setup
when: ("personal_computers" in group_names) when: ("personal_computers" in group_names)
include_role: include_role:

View File

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