community.general.rollbar_deployment module – Notify Rollbar 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.rollbar_deployment
.
Synopsis
Notify Rollbar about app deployments (see https://rollbar.com/docs/deploys_other/)
Parameters
Parameter |
Comments |
---|---|
Deploy comment (e.g. what is being deployed). |
|
Name of the environment being deployed, e.g. ‘production’. |
|
Revision number/sha being deployed. |
|
Rollbar username of the user who deployed. |
|
Your project access token. |
|
Optional URL to submit the notification to. Default: |
|
User who deployed. |
|
If Choices:
|
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: 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') }}"