On this page
community.general.rollbar_deployment – Notify Rollbar about app deployments
Note
This plugin is part of the community.general collection (version 1.3.2).
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 | Choices/Defaults | Comments |
---|---|---|
comment
string
|
Deploy comment (e.g. what is being deployed).
|
|
environment
string / required
|
Name of the environment being deployed, e.g. 'production'.
|
|
revision
string / required
|
Revision number/sha being deployed.
|
|
rollbar_user
string
|
Rollbar username of the user who deployed.
|
|
token
string / required
|
Your project access token.
|
|
url
string
|
Default:
"https://api.rollbar.com/api/1/deploy/"
|
Optional URL to submit the notification to.
|
user
string
|
User who deployed.
|
|
validate_certs
boolean
|
|
If no , SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates.
|
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') }}"
Authors
- Max Riveiro (@kavu)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/rollbar_deployment_module.html