diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-11-02 16:25:28 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-11-02 16:25:28 +0100 |
commit | 4ea6ff79f537dffba065af70babcd862f8398642 (patch) | |
tree | 7075c3684c069226965bbf1f63481c7016b9068f /roles/grafana/tasks/main.yml | |
parent | b7129bd09320c46d9497cf257b846665f56ba966 (diff) | |
download | ansible_collection-4ea6ff79f537dffba065af70babcd862f8398642.tar.gz |
grafana fix apt key
Diffstat (limited to 'roles/grafana/tasks/main.yml')
-rw-r--r-- | roles/grafana/tasks/main.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 42376d1..01aa5a4 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -14,8 +14,13 @@ - name: Install Grafana Repo Key get_url: url: https://packages.grafana.com/gpg.key - dest: /usr/share/keyrings/grafana-keyring.asc + dest: /usr/share/keyrings/grafana-keyring.key become: yes + register: key_download + +- name: dearmor key + shell: gpg --dearmor /usr/share/keyrings/grafana-keyring.key > /usr/share/keyrings/grafana-keyring.asc + when: key_download.changed - name: Update APT cache apt: |