PARALLAX

rollbar_deployment

Notify Rollbar about app deployments

Collection: community.general

Full Name: community.general.rollbar_deployment

Synopsis

Notify Rollbar about app deployments

Parameters

NameTypeRequiredDefaultDescription
commentstringDeploy comment (for example what is being deployed).
environmentstringyesName of the environment being deployed, for example V(production).
revisionstringyesRevision number/sha being deployed.
rollbar_userstringRollbar username of the user who deployed.
tokenstringyesYour project access token.
urlstringhttps://api.rollbar.com/api/1/deploy/Optional URL to submit the notification to.
userstringUser who deployed.
validate_certsbooltrueIf 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') }}"
Search
    ↑ ↓ move↵ openesc close