Trying to add the target 'apache' results in an 'assertion failed' status with Ansible. Downloaded the latest new relic install from galaxy today, not sure where to find the version I have.
Steps to Reproduce
- name: Install New Relic infrastructure and logs
hosts: all
roles:
- role: newrelic.newrelic_install
vars:
targets:
- infrastructure
- logs
- apache
environment:
NEW_RELIC_API_KEY: "{{ lookup('env', 'NEWRELIC_API_KEY') }}"
NEW_RELIC_ACCOUNT_ID: "{{ lookup('env', 'NEWRELIC_ACCOUNT_NUMBER') }}"
NEW_RELIC_REGION: US
Description
Trying to add the target 'apache' results in an 'assertion failed' status with Ansible. Downloaded the latest new relic install from galaxy today, not sure where to find the version I have.
Steps to Reproduce
Expected Behavior
It should enable apm for apache.
Relevant Logs / Console output
failed: [controller.do.iot4.net] (item=apache) => {"ansible_loop_var": "item", "assertion": "target_name_map[item] is defined", "changed": false, "evaluated_to": false, "item": "apache", "msg": "Assertion failed"}
Your Environment
Additional context
This works when 'apache' is removed as one the third target.