Skip to content

Instantly share code, notes, and snippets.

Created March 12, 2015 22:33
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
newrelic server monitoring ansible role for Ubuntu
# Install newrelic server monitoring
# Add newrelic repository
- apt_repository: repo='deb newrelic non-free' state=present
# Trust the New Relic GPG key.
- apt_key: url= state=present
# Update and install apt packages
- name: Run apt-get update
apt: update_cache=yes
# Install the package "newrelic-sysmond"
- apt: name=newrelic-sysmond state=present
# Add license key to config file: (See /etc/newrelic/nrsysmond.cfg for other config options)
- shell: nrsysmond-config --set license_key={{your newrelic license key goes here}}
# Start the daemon:
- service: name=newrelic-sysmond state=started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment