install ansible-galaxy install YasushiKobayashi.newrelic-php pre install ansible-galaxy install YasushiKobayashi.newrelic ansible role install newrelic cenos6 amazone-linux set your api key vars: newrelic_api_key: xxx newrelic_app_name: xxx end restart your web server