Sha256: 3146b96c982574a9bf9b0f0c3ee4dce61b6bea996b87c66a0949b1ad3c6e8500

Contents?: true

Size: 889 Bytes

Versions: 8

Compression:

Stored size: 889 Bytes

Contents

---
  - name: Add New Relic apt key
    apt_key:
      url: https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg 
      state: present
    become: true

  - name: create license key
    copy: 
      dest: "/etc/newrelic-infra.yml"
      content: |
        license_key: {{newrelic_license}}

  - name: Add New Relic apt repo
    apt_repository:
      repo: deb [arch=amd64] https://download.newrelic.com/infrastructure_agent/linux/apt focal main
      state: present
    become: true

  - name: Install New Relic server agent
    apt:
      pkg: newrelic-infra
      state: present
      update_cache: true
    become: true

  - name: Configure application log forwarding if enabled
    when: "{{ newrelic_logs|length }}"
    become: true
    template: 
      dest: "/etc/newrelic-infra/logging.d/subspace.yml"
      src: logs.yml.j2
    notify: Restart newrelic-infra

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
subspace-2.5.10 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.9 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.8 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.7 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.6 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.5 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.4 ansible/roles/newrelic-infra/tasks/main.yml
subspace-2.5.3 ansible/roles/newrelic-infra/tasks/main.yml