--- - name: Add dotdeb GPG key apt_key: # url: https://download.newrelic.com/548C16BF.gpg data: "{{ lookup('file', '548C16BF.gpg') }}" - name: Append packages.dotdeb.org to Squid whitelist lineinfile: name: /etc/squid3/whitelist-custom.conf line: "http://apt.newrelic.com/.*" notify: Reload Squid - meta: flush_handlers - name: Install NewRelic repository apt_repository: repo: "deb http://apt.newrelic.com/debian/ newrelic non-free" state: present filename: newrelic - meta: flush_handlers