--- # Source path for application stack files on the control node # Use playbook_dir as base, then go to ../stacks/application # This assumes playbooks are in deployment/ansible/playbooks application_stack_src: "{{ playbook_dir | default(role_path + '/..') }}/../stacks/application" # Destination path on the target host (defaults to configured app_stack_path) application_stack_dest: "{{ app_stack_path | default(stacks_base_path + '/application') }}" # Template used to generate the application .env file application_env_template: "{{ role_path }}/../../templates/application.env.j2" # Optional vault file containing secrets (loaded if present) application_vault_file: "{{ role_path }}/../../secrets/production.vault.yml" # Whether to synchronize stack files from repository application_sync_files: true # Compose recreate strategy ("auto", "always", "never") application_compose_recreate: "auto" # Whether to remove orphaned containers during compose up application_remove_orphans: false # Whether to run database migrations after (re)deploying the stack application_run_migrations: true # Optional health check URL to verify after deployment application_healthcheck_url: "{{ health_check_url | default('') }}" # Timeout used for waits in this role application_wait_timeout: "{{ wait_timeout | default(60) }}" application_wait_interval: 5 # Command executed inside the app container to run migrations application_migration_command: "php console.php db:migrate" # Environment (production, staging, local) # Determines which compose files to use and service names application_environment: "{{ APP_ENV | default('production') }}" # Compose file suffix based on environment application_compose_suffix: "{{ 'staging.yml' if application_environment == 'staging' else 'production.yml' }}" # Service names based on environment application_service_name: "{{ 'staging-app' if application_environment == 'staging' else 'php' }}"