Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation

This commit is contained in:
2025-07-08 23:43:13 +02:00
parent 6b87a049d4
commit 563d5fd528
1242 changed files with 2301 additions and 1355 deletions

View File

@@ -11,7 +11,7 @@ from ruamel.yaml import YAML
# Paths to the group-vars files
PORTS_FILE = './group_vars/all/09_ports.yml'
NETWORKS_FILE = './group_vars/all/10_networks.yml'
ROLE_TEMPLATE_DIR = './templates/docker_role'
ROLE_TEMPLATE_DIR = './templates/roles/web-app'
ROLES_DIR = './roles'
yaml = YAML()
@@ -117,7 +117,7 @@ def main():
args = parser.parse_args()
app = args.application_id
role = f"docker-{app}"
role = f"web-app-{app}"
role_dir = os.path.join(ROLES_DIR, role)
if os.path.exists(role_dir):

View File

@@ -136,7 +136,7 @@ def main():
)
parser.add_argument(
'-p', '--prefix',
help='Only include roles whose names start with this prefix (e.g. docker-, client-)',
help='Only include roles whose names start with this prefix (e.g. web-app-, desktop-)',
default=None
)
parser.add_argument(