community.general.rollbar_deployment (8.5.0) — module

Notify Rollbar about app deployments

Authors: Max Riveiro (@kavu)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Notify Rollbar about app deployments (see https://rollbar.com/docs/deploys_other/)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Rollbar deployment notification
    community.general.rollbar_deployment:
    token: AAAAAA
    environment: staging
    user: ansible
    revision: '4.2'
    rollbar_user: admin
    comment: Test Deploy
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - 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') }}"

Inputs

    
url:
    default: https://api.rollbar.com/api/1/deploy/
    description:
    - Optional URL to submit the notification to.
    required: false
    type: str

user:
    description:
    - User who deployed.
    required: false
    type: str

token:
    description:
    - Your project access token.
    required: true
    type: str

comment:
    description:
    - Deploy comment (e.g. what is being deployed).
    required: false
    type: str

revision:
    description:
    - Revision number/sha being deployed.
    required: true
    type: str

environment:
    description:
    - Name of the environment being deployed, e.g. 'production'.
    required: true
    type: str

rollbar_user:
    description:
    - Rollbar username of the user who deployed.
    required: false
    type: str

validate_certs:
    default: true
    description:
    - If V(false), SSL certificates for the target url will not be validated. This should
      only be used on personally controlled sites using self-signed certificates.
    required: false
    type: bool