newrelic_deployment
Notify New Relic about app deployments
Collection: community.general
Full Name: community.general.newrelic_deployment
Synopsis
Notify New Relic about app deployments
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app_name | string | The value of C(app_name) in the C(newrelic.yml) file used by the application. One of O(app_name) or O(application_id) is required. | ||
| app_name_exact_match | bool | false | If this flag is set to V(true) then the application ID lookup by name would only work for an exact match. If set to V(false) it returns the first result. | |
| application_id | string | The application ID found in the metadata of the application in APM. One of O(app_name) or O(application_id) is required. | ||
| changelog | string | A list of changes for this deployment. | ||
| description | string | Text annotation for the deployment - notes for you. | ||
| revision | string | yes | A revision number (for example, git commit SHA). | |
| token | string | yes | API token to place in the Api-Key header. | |
| user | string | The name of the user/process that triggered this deployment. | ||
| validate_certs | bool | true | If V(false), SSL certificates are not validated. This should only be used on personally controlled sites using self-signed certificates. |
Example
yaml
- name: Notify New Relic about an app deployment
community.general.newrelic_deployment:
token: AAAAAA
app_name: myapp
user: ansible deployment
revision: '1.0'