Sets up New Relic PHP agent: https://docs.newrelic.com/docs/php/new-relic-for-php
Debian Wheezy, with PHP installed. This role tries to restart PHP-FPM and Nginx.
The variables that can be passed to this role and a brief description about them are as follows
# License key (required)
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16
# Application name (required)
newrelic_appname: myapp-host1;myapp
Requires the New Relic repository to be set up; depends on ansible-newrelic for this purpose.
---
- hosts: all
roles:
- { role: chriskite.newrelic, newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16, newrelic_appname: myapp-host1;myapp }
---
- hosts: all
vars:
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16
newrelic_appname: myapp-host1;myapp
roles:
- chriskite.newrelic-php
---
newrelic_license_key: ab2fa361cd4d0d373833cad619d7bcc424d27c16
newrelic_appname: myapp-host1;myapp
---
- hosts: all
roles:
- newrelic-php