Finished new role identification system implementation

This commit is contained in:
2025-07-11 00:42:36 +02:00
parent 292918da81
commit 6e32b20240
44 changed files with 212 additions and 218 deletions

View File

@@ -80,7 +80,7 @@ def main():
)
parser.add_argument(
"--host-type",
choices=["server", "personal-computer"],
choices=["server", "desktop"],
default="server",
help="Specify whether the target is a server or a personal computer. Affects role selection and variables."
)

View File

@@ -10,7 +10,7 @@ from pathlib import Path
# Directory containing roles; can be overridden by tests
MODULE_DIR = Path(__file__).resolve().parent
ROLES_DIR = (MODULE_DIR.parent / "roles").resolve()
ROLES_DIR = (MODULE_DIR.parent.parent / "roles").resolve()
def process_role(role_dir: Path, prefix: str, preview: bool, overwrite: bool):
name = role_dir.name