0Pricing
Ansible Academy · Lesson

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: true

All lessons in this course

  1. Architect the Project: Roles & Inventory
  2. Provision, Harden & Bootstrap Hosts
  3. Rolling Deploy Behind the Load Balancer
  4. Smoke Tests, Rollback & Notifications
← Back to Ansible Academy