community.general.newrelic_deployment (1.3.11) — module

Notify newrelic about app deployments

Authors: Matt Coddington (@mcodd)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.11

Description

Notify newrelic about app deployments (see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/deployment-notifications#api)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name:  Notify newrelic about an app deployment
  community.general.newrelic_deployment:
    token: AAAAAA
    app_name: myapp
    user: ansible deployment
    revision: '1.0'

Inputs

    
user:
    description:
    - The name of the user/process that triggered this deployment
    required: false
    type: str

token:
    description:
    - API token, to place in the x-api-key header.
    required: true
    type: str

appname:
    description:
    - Name of the application
    required: false
    type: str

app_name:
    description:
    - (one of app_name or application_id are required) The value of app_name in the newrelic.yml
      file used by the application
    required: false
    type: str

revision:
    description:
    - A revision number (e.g., git commit SHA)
    required: false
    type: str

changelog:
    description:
    - A list of changes for this deployment
    required: false
    type: str

description:
    description:
    - Text annotation for the deployment - notes for you
    required: false
    type: str

environment:
    description:
    - The environment for this deployment
    required: false
    type: str

application_id:
    description:
    - (one of app_name or application_id are required) The application id, found in the
      URL when viewing the application in RPM
    required: false
    type: str

validate_certs:
    default: 'yes'
    description:
    - If C(no), SSL certificates will not be validated. This should only be used on personally
      controlled sites using self-signed certificates.
    required: false
    type: bool