Skip to content

chore: Add a simple playbook to bring down the site#266

Merged
martyngigg merged 1 commit intomainfrom
ansible-site-down
Mar 19, 2026
Merged

chore: Add a simple playbook to bring down the site#266
martyngigg merged 1 commit intomainfrom
ansible-site-down

Conversation

@martyngigg
Copy link
Contributor

@martyngigg martyngigg commented Mar 19, 2026

Summary

This is required, for example, if a DB upgrade is necessary.

Summary by CodeRabbit

  • Chores
    • Added comprehensive automated infrastructure management system for containerised application services across all deployment servers. Enables streamlined and efficient operational procedures for managing service lifecycles, including proper shutdown and resource cleanup capabilities. Supports enhanced system maintenance processes, improved operational consistency, and overall deployment reliability across the entire production infrastructure environment.

This is required, for example, if a DB upgrade is necessary.
@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

A new Ansible playbook file has been added at infra/ansible/site_down.yml. The playbook targets all hosts and orchestrates the shutdown of Docker containers by halting running instances and pruning stopped ones.

Changes

Cohort / File(s) Summary
Docker Container Lifecycle Management
infra/ansible/site_down.yml
New Ansible playbook that stops all running Docker containers by querying container IDs and conditionally stopping them, then prunes stopped containers with change detection based on command output.

Poem

🐰 Hop, stop, and sweep!
Containers sleep, we leap,
Docker halts with care,
Cleanup everywhere!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding an Ansible playbook to bring down the site, which matches the PR's core objective and the file addition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@martyngigg martyngigg merged commit 2de4c47 into main Mar 19, 2026
1 of 2 checks passed
@martyngigg martyngigg deleted the ansible-site-down branch March 19, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant