Sha256: cd865b85b15127ececabcb40d74074232433008763cba30006859ce51cf9897a

Contents?: true

Size: 886 Bytes

Versions: 11

Compression:

Stored size: 886 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

11 entries across 11 versions & 1 rubygems

Version Path
subspace-3.0.12 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.11 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.10 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.9 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.6 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.5 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.4 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.3 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.2 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.0 ansible/roles/newrelic-infra/tasks/main.yml
subspace-3.0.0.rc1 ansible/roles/newrelic-infra/tasks/main.yml