Add stop.sh (compose down) and disable print_forge.
Sync runner checkout / sync (pull_request) Successful in 6s
Sync runner checkout / sync (pull_request) Successful in 6s
Closes #33. Deploy skips host_apps.enabled: false so CI cannot resurrect a stopped app.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
---
|
||||
# Phase 2: CI-triggered app deployment.
|
||||
#
|
||||
# Runs against all webservers; each host deploys only the apps listed in its
|
||||
# host_apps. Deploy exactly one app+env at a pinned ref via extra-vars:
|
||||
# Runs against all webservers; each host deploys only enabled apps listed in
|
||||
# its host_apps (enabled: false is skipped). Deploy exactly one app+env at a
|
||||
# pinned ref via extra-vars:
|
||||
#
|
||||
# ansible-playbook playbooks/deploy-apps.yml \
|
||||
# -e app=company_site -e app_env=prod -e app_ref=<sha>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# Stop one docker-compose app+env. Inverse of deploy-apps.yml start.
|
||||
#
|
||||
# ansible-playbook playbooks/stop-apps.yml -e app=print_forge -e app_env=prod
|
||||
#
|
||||
# host_apps rows with enabled: false are still valid stop targets (so a
|
||||
# disabled app can be taken down). Node-static apps are skipped.
|
||||
- name: Stop applications
|
||||
hosts: webservers
|
||||
become: true
|
||||
tasks:
|
||||
- name: Stop requested compose apps
|
||||
ansible.builtin.include_role:
|
||||
name: app-deploy
|
||||
tasks_from: stop.yml
|
||||
Reference in New Issue
Block a user