community.general.newrelic_deployment module – Notify New Relic about app deployments
Note
This module is part of the community.general collection (version 10.7.5).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.newrelic_deployment.
Synopsis
- Notify New Relic about app deployments (see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/record-monitor-deployments/). 
Parameters
| Parameter | Comments | 
|---|---|
| The value of  One of  | |
| If this flag is set to  Choices: 
 | |
| The application ID found in the metadata of the application in APM. One of  | |
| A list of changes for this deployment. | |
| Text annotation for the deployment - notes for you. | |
| A revision number (for example, git commit SHA). | |
| API token to place in the Api-Key header. | |
| The name of the user/process that triggered this deployment. | |
| If  Choices: 
 | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Support: full | Can run in  | |
| Support: none | Will return details on what has changed (or possibly needs changing in  | 
Examples
- name: Notify New Relic about an app deployment
  community.general.newrelic_deployment:
    token: AAAAAA
    app_name: myapp
    user: ansible deployment
    revision: '1.0'
