Installs New Relic PHP agent on Debian-based servers. Fully compatible with the geerlingguy.php
role.
Add this role to requirements.yml
:
- src: unleashedtech.newrelic_php
version: 1.1.0 # Check for latest version!
Run $ ansible-galaxy install -r requirements.yml
to install this new role.
# New Relic License Key
## You should store this in an encrypted vault file!
## See: https://docs.newrelic.com/docs/accounts-partnerships/accounts/account-setup/license-key
newrelic_license_key: xxxxxxxxxxx
# Indicates the desired package state.
# `latest` ensures that the latest version is installed.
# `present` does not update if already installed.
# `absent` will remove the package and all configuration files
# Choices: present|latest|absent
# Default: latest
newrelic_php_package_state: present
# See https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration
newrelic_php_config:
appname: "My Awesome App {{ env }}"
transaction_tracer.detail: 1
datastore_tracer.database_name_reporting.enabled: true
- Only one New Relic APM application per server
Pull requests are welcomed.
New Relic PHP Agent is released under the MIT License.