Skip to content

Commit

Permalink
Fix redis exporter install
Browse files Browse the repository at this point in the history
  • Loading branch information
danivovich committed Jun 6, 2024
1 parent 933c37c commit ccb88c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/redis_exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
when: redis_exporter_stat.stat.exists == False
become: true

- name: stat extracted folder
stat: path="/home/prometheus/redis_exporter/{{ redis_exporter_version }}/redis_exporter-v{{ redis_exporter_version }}.linux-amd64"
register: redis_exporter_extracted_folder_stat
become: true

- name: Move extracted folder to standard path
command: mv /home/prometheus/redis_exporter/{{ redis_exporter_version }}/redis_exporter-v{{ redis_exporter_version }}.linux-amd64/redis_exporter /home/prometheus/redis_exporter/{{ redis_exporter_version }}/redis_exporter
when: redis_exporter_extracted_folder_stat.stat.exists
become: true

- name: Template out the env file
template:
src: redis_exporter.env.j2
Expand Down

0 comments on commit ccb88c0

Please sign in to comment.