This ansible role installs and configures the New Relic PHP Agent on RHEL/CentOS, Debian & Ubuntu based systems.
This role requires Ansible 1.4 higher, platforms are listed in the metadata file.
Example variables are listed below (see defaults/main.yml
):
All variables used by /etc/php.d/newrelic.ini may be configured using ansible variables.
# Setting: newrelic.license
newrelic_license_key: 0123456789012345678901234567890123456789
# Setting: newrelic.appname
newrelic_agent_appname: "Symfony Application"
---
- hosts: all
roles:
- { role: newrelic-php, newrelic_license_key: 0123456789012345678901234567890123456789 }
---
- hosts: all
vars:
newrelic_license_key: 0123456789012345678901234567890123456789
roles:
- newrelic-php
---
newrelic_license_key: 0123456789012345678901234567890123456789
---
- hosts: all
roles:
- newrelic-php