Newrelic Agents Ansible Collection banner
newrelic newrelic

Newrelic Agents Ansible Collection

DevOps community

Description

An Ansible collection for installing New Relic agents

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

New Relic Ansible Collection - newrelic.newrelic_agents

This repo contains the Ansible role for installing the [New Relic Java agent](https://docs.newrelic.com/docs/agents/java-agent/getting-started/introduction-new-relic-java). Other roles will be added in the future.

Installation

To install the collection, use the `ansible-galaxy` command:

$ ansible-galaxy collection install newrelic.newrelic_agents

Example usage

The following examples are strictly for reference purposes, and are drawn from the individual roles' examples. See the [Java agent role repo](https://github.com/newrelic/newrelic-java-agent-ansible-role) for full documentation.

*Note: When using these roles from this collection, rather than directly, you must either add the `collections` keyword to your playbooks as shown below, or use the fully qualified collection name, for example `newrelic.newrelic_agents.newrelic_java_agent`.*

---
- hosts: java_servers

  collections:
    - newrelic.newrelic_agents

  vars:
    nr_java_agent_config:
      license_key: YOUR_LICENSE_KEY
      # etc.
  
  include_role:
    name: newrelic_java_agent

Contributing

We encourage your contributions to improve the New Relic Ansible collection! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.

License

The New Relic Ansible collection is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.