ansible-roles/newrelic/tasks/sources.yml
Jérémy Lecour 7d08b0a30a
All checks were successful
continuous-integration/drone/push Build is passing
rename the tasks for embedded GPG keys
2021-05-06 11:33:19 +02:00

27 lines
564 B
YAML

---
- name: Look for /etc/apt/trusted.gpg
stat:
path: /etc/apt/trusted.gpg
register: apt_trusted_gpg
- name: NewRelic embedded GPG key is absent
apt_key:
id: "548C16BF"
state: absent
when: apt_trusted_gpg.stat.exists
- name: Add NewRelic GPG key
copy:
src: newrelic.asc
dest: /etc/apt/trusted.gpg.d/newrelic.asc
force: yes
mode: "0644"
- name: Install NewRelic repository
apt_repository:
repo: "deb http://apt.newrelic.com/debian/ newrelic non-free"
state: present
filename: newrelic
update_cache: yes