community.general.airbrake_deployment module – Notify airbrake about app deployments
Note
This module is part of the community.general collection (version 10.0.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.airbrake_deployment
.
Synopsis
Notify airbrake about app deployments (see https://airbrake.io/docs/api/#deploys-v4).
Parameters
Parameter |
Comments |
---|---|
The airbrake environment name, typically ‘production’, ‘staging’, etc. |
|
Airbrake PROJECT_ID |
|
Airbrake PROJECT_KEY. |
|
URL of the project repository |
|
A hash, number, tag, or other identifier showing what revision from version control was deployed |
|
Optional URL to submit the notification to. Use to send notifications to Airbrake-compliant tools like Errbit. Default: |
|
The username of the person doing the deployment |
|
If Choices:
|
|
A string identifying what version was deployed |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Notify airbrake about an app deployment
community.general.airbrake_deployment:
project_id: '12345'
project_key: 'AAAAAA'
environment: staging
user: ansible
revision: '4.2'
- name: Notify airbrake about an app deployment, using git hash as revision
community.general.airbrake_deployment:
project_id: '12345'
project_key: 'AAAAAA'
environment: staging
user: ansible
revision: 'e54dd3a01f2c421b558ef33b5f79db936e2dcf15'
version: '0.2.0'