Skip to content

Instantly share code, notes, and snippets.

@gerhard
Forked from drob/install-new-relic.yml
Created February 3, 2014 20:27
Show Gist options
  • Save gerhard/8791720 to your computer and use it in GitHub Desktop.
Save gerhard/8791720 to your computer and use it in GitHub Desktop.
---
- name: Register New Relic repository.
get_url: url=http://download.newrelic.com/debian/newrelic.list
dest=/etc/apt/sources.list.d/newrelic.list
- name: Download repo key.
apt_key: url=http://download.newrelic.com/548C16BF.gpg
- name: Install New Relic.
apt: pkg=newrelic-sysmond update_cache=yes
- name: Configure New Relic with license key.
shell: "nrsysmond-config --set license_key=YOUR_LICENSE_KEY"
- name: Start New Relic.
service: name=newrelic-sysmond state=started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment