21 lines
591 B
YAML
21 lines
591 B
YAML
|
---
|
||
|
- name: "Exporter | Copy borg_exporter"
|
||
|
ansible.builtin.template:
|
||
|
src: borg_exporter.j2
|
||
|
dest: /usr/local/bin/borg_exporter
|
||
|
mode: "0755"
|
||
|
|
||
|
- name: "Exporter | Copy systemd unit"
|
||
|
ansible.builtin.copy:
|
||
|
src: prometheus-borg-exporter.service
|
||
|
dest: /etc/systemd/system/prometheus-borg-exporter.service
|
||
|
mode: "0644"
|
||
|
notify: Restart exporter service
|
||
|
|
||
|
- name: "Exporter | Copy systemd timer"
|
||
|
ansible.builtin.copy:
|
||
|
src: prometheus-borg-exporter.timer
|
||
|
dest: /etc/systemd/system/prometheus-borg-exporter.timer
|
||
|
mode: "0644"
|
||
|
notify: Restart exporter timer
|