Infrastructure Agent Ansible banner
newrelic newrelic

Infrastructure Agent Ansible

DevOps community

Description

Ansible role for installing New Relic Infrastructure agent

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

[![New Relic Community Plus header](https://raw.githubusercontent.com/newrelic/open-source-office/master/examples/categories/images/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)

:warning: New Relic offers a new Ansible solution that simplifies scaling your New Relic Observability efforts. Please consider using this solution going forward.

Ansible role for the New Relic infrastructure agent ![test_ansible](https://github.com/newrelic/infrastructure-agent-ansible/actions/workflows/main.yml/badge.svg?branch=master) ![release_ansible](https://github.com/newrelic/infrastructure-agent-ansible/actions/workflows/release.yml/badge.svg)

An Ansible role that can be used to install and/or configure the New Relic Infrastructure Agent and install New Relic Infrastructure OHIs.

Installation

Use the following command to download the latest version of the New Relic role:

`ansible-galaxy install newrelic.newrelic-infra`

Getting Started

To use the `newrelic.newrelic-infra` role directly in a playbook, simply [include the role in your playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#using-roles). For example,

# myplaybook.yml
---
- hosts: webservers
  roles:
    - role: newrelic.newrelic-infra
      vars:
        nrinfragent_config:
          license_key: 12345

To require `newrelic.newrelic-infra` as a role depencency your own role, [add a dependency in the meta/main.yml of your role](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#using-role-dependencies). For example,

# roles/myapp/meta/main.yml
---
dependencies:
  - role: newrelic.newrelic-infra

Usage

This role can be used for the following interactions with the New Relic Infrastructure Agent.

  • Install the agent via OS package manager
  • Install the agent via tarball (Linux only)
  • Insta