ilia 3415340e26
All checks were successful
CI / skip-ci-check (pull_request) Successful in 1m18s
CI / lint-and-test (pull_request) Successful in 1m21s
CI / ansible-validation (pull_request) Successful in 2m43s
CI / secret-scanning (pull_request) Successful in 1m19s
CI / dependency-scan (pull_request) Successful in 1m23s
CI / sast-scan (pull_request) Successful in 2m28s
CI / license-check (pull_request) Successful in 1m20s
CI / vault-check (pull_request) Successful in 2m21s
CI / playbook-test (pull_request) Successful in 2m19s
CI / container-scan (pull_request) Successful in 1m48s
CI / sonar-analysis (pull_request) Successful in 1m26s
CI / workflow-summary (pull_request) Successful in 1m17s
Refactor playbooks: servers/workstations, split monitoring, improve shell
2025-12-31 23:13:03 -05:00
..

app_setup

Creates the standard app filesystem layout and runtime services:

  • /srv/app/backend and /srv/app/frontend
  • /srv/app/.env.<dev|qa|prod>
  • /usr/local/bin/deploy_app.sh (git pull, install deps, build, migrate, restart services)
  • systemd units:
    • app-backend.service
    • app-frontend.service

All behavior is driven by variables so you can reuse this role for multiple projects.

Variables

See defaults/main.yml. Common inputs in the app stack:

  • app_project, app_env (used for naming and .env.<env> selection)
  • app_repo_url, app_repo_dest, app_repo_branch
  • app_env_vars (map written into /srv/app/.env.<env>)
  • components.backend, components.frontend (enable/disable backend/frontend setup)
  • app_backend_dir, app_frontend_dir, ports and Node.js commands