Skip to content

Commit

Permalink
Add Grafana Agent Version and CPU Arch to Downloaded ZIP (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPaglusch authored Aug 10, 2023
1 parent f7c2729 commit b312623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/grafana_agent/tasks/install/download-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
become: false
ansible.builtin.get_url:
url: "{{ _grafana_agent_download_url }}"
dest: "{{ grafana_agent_local_tmp_dir }}/grafana-agent.zip"
dest: "{{ grafana_agent_local_tmp_dir }}/grafana-agent_{{ _grafana_agent_cpu_arch }}_{{ grafana_agent_version }}.zip"
mode: 0664
register: _download_archive
until: _download_archive is succeeded
Expand All @@ -27,7 +27,7 @@
- name: Extract grafana-agent.zip
become: false
ansible.builtin.unarchive:
src: "{{ grafana_agent_local_tmp_dir }}/grafana-agent.zip"
src: "{{ grafana_agent_local_tmp_dir }}/grafana-agent_{{ _grafana_agent_cpu_arch }}_{{ grafana_agent_version }}.zip"
dest: "{{ grafana_agent_local_tmp_dir }}"
remote_src: false
delegate_to: localhost
Expand Down

0 comments on commit b312623

Please sign in to comment.