ansible.builtin.newrelic_deployment (v2.9.27) — module

Notify newrelic about app deployments

| "added in version" 1.2 of ansible.builtin"

Authors: Matt Coddington (@mcodd)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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.
- 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

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

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

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

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

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

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

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

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

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
    version_added: 1.5.1
    version_added_collection: ansible.builtin