Smoke Tests, Rollback & Notifications
Verify, recover and report on deploy.
Deploy Is Not Done at Reload
A finished play is not a working app. You still need smoke tests, a rollback path and a notification. Close the loop. 🔁
Smoke Test the Endpoint
Hit a real route with the uri module and assert a 200. If the app does not answer correctly, the deploy should fail loudly.
- name: Smoke test
ansible.builtin.uri:
url: https://app.example.com/health
status_code: 200
return_content: trueAll lessons in this course
- Architect the Project: Roles & Inventory
- Provision, Harden & Bootstrap Hosts
- Rolling Deploy Behind the Load Balancer
- Smoke Tests, Rollback & Notifications