Open nvahalik opened 2 months ago
There seems to be an easy fix for that PHP Agent (unsupported)
: just add a SUDO_USER
env
Quickfix:
- name: Install New Relic
hosts: all
roles:
- role: newrelic.newrelic_install
vars:
targets:
- infrastructure
- logs
- apm-php
tags:
foo: bar
environment:
SUDO_USER: root
NEW_RELIC_API_KEY: <API key>
NEW_RELIC_ACCOUNT_ID: <Account ID>
NEW_RELIC_REGION: <Region>
This is caused by a poor check for admin under open-install-library
reported here: https://github.com/newrelic/open-install-library/issues/1076
Description
When trying to use the
apm-php
target, it fails to install.Steps to Reproduce
I have copied and pasted the sample from the repository, commenting out
logs
and adding myNRAK-*
key and account ID.Expected Behavior
The PHP Agent should be installed.
Relevant Logs / Console output
Your Environment
Debian 11. Fresh install.
Additional context
This appears to be a known bug: https://forum.newrelic.com/s/hubtopic/aAXPh0000000bcHOAQ/php-agent-installation-via-ansible-is-not-working-unsupported