community.general.newrelic_deployment (6.6.8) — module

Notify New Relic about app deployments

Authors: Matt Coddington (@mcodd)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 6.6.8

Description

Notify New Relic about app deployments (see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/record-monitor-deployments/)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name:  Notify New Relic 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 Api-Key header.
    required: true
    type: str

appname:
    description:
    - Name of the application.
    - This option has been deprecated and will be removed in community.general 7.0.0.
      Please do not use.
    required: false
    type: str

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

revision:
    description:
    - A revision number (e.g., git commit SHA)
    required: true
    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.
    - This option has been deprecated and will be removed community.general 7.0.0. Please
      do not use.
    required: false
    type: str

application_id:
    description:
    - The application ID found in the metadata of the application in APM.
    - One of I(app_name) or I(application_id) is required.
    required: false
    type: str

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