rollbar_deployment
Notify Rollbar about app deployments
Collection: community.general
Full Name: community.general.rollbar_deployment
Synopsis
Notify Rollbar about app deployments
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| comment | string | Deploy comment (for example what is being deployed). | ||
| environment | string | yes | Name of the environment being deployed, for example V(production). | |
| revision | string | yes | Revision number/sha being deployed. | |
| rollbar_user | string | Rollbar username of the user who deployed. | ||
| token | string | yes | Your project access token. | |
| url | string | https://api.rollbar.com/api/1/deploy/ | Optional URL to submit the notification to. | |
| user | string | User who deployed. | ||
| validate_certs | bool | true | If V(false), SSL certificates for the target URL are not validated. This should only be used on personally controlled sites using self-signed certificates. |
Example
yaml
- name: Rollbar deployment notification
community.general.rollbar_deployment:
token: AAAAAA
environment: staging
user: ansible
revision: '4.2'
rollbar_user: admin
comment: Test Deploy
- name: Notify rollbar about current git revision deployment by current user
community.general.rollbar_deployment:
token: "{{ rollbar_access_token }}"
environment: production
revision: "{{ lookup('pipe', 'git rev-parse HEAD') }}"
user: "{{ lookup('env', 'USER') }}"