diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-12-08 20:06:25 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-12-08 20:06:25 +0100 |
commit | 785cae7ccf8c69366438a446ff121ecbb7ad5465 (patch) | |
tree | f9971024e7befb12bb2bf26277d7b8c2006c36e1 /roles/apt-repo/grafana/tasks | |
parent | add role for graphite carbon-cache (diff) |
add grahpite web and grafana roles
Diffstat (limited to 'roles/apt-repo/grafana/tasks')
-rw-r--r-- | roles/apt-repo/grafana/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/apt-repo/grafana/tasks/main.yml b/roles/apt-repo/grafana/tasks/main.yml new file mode 100644 index 00000000..05e6db80 --- /dev/null +++ b/roles/apt-repo/grafana/tasks/main.yml @@ -0,0 +1,19 @@ +--- +- name: add repository key + copy: + src: repo.gpg + dest: /etc/apt/trusted.gpg.d/grafana.gpg + register: apt_repo_grafana_key + +- name: add repository entry + copy: + content: | + deb https://packages.grafana.com/oss/deb stable main + dest: /etc/apt/sources.list.d/grafana.list + register: apt_repo_grafana_sources + +- name: update apt cache + when: apt_repo_grafana_key is changed or + apt_repo_grafana_sources is changed + apt: + update_cache: yes |