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
app_setup
Creates the standard app filesystem layout and runtime services:
/srv/app/backendand/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.serviceapp-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_branchapp_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