community.general.rollbar_deployment module – Notify Rollbar about app deployments

Note

This module is part of the community.general collection (version 8.6.8).

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

Aliases: monitoring.rollbar_deployment

Parameters

Parameter

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

Optional URL to submit the notification to.

Default: "https://api.rollbar.com/api/1/deploy/"

user

string

User who deployed.

validate_certs

boolean

If false, SSL certificates for the target url will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Choices:

  • false

  • true ← (default)

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode.

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)