This commit is contained in:
Ludovic Cartier 2023-02-06 18:19:49 +01:00
parent 21428988d9
commit 1ca399e4c0

View File

@ -26,19 +26,19 @@
- 'prometheus | proxmox exporter | restart service' - 'prometheus | proxmox exporter | restart service'
tags: ['prometheus_proxmox'] tags: ['prometheus_proxmox']
- name: 'promox exporter | systemd | copy unit file' - name: 'proxmox exporter | systemd | copy unit file'
template: template:
src: systemd/prometheus-proxmox-exporter.service.j2 src: systemd/prometheus-proxmox-exporter.service.j2
dest: /etc/systemd/system/prometheus-promox-exporter.service dest: /etc/systemd/system/prometheus-proxmox-exporter.service
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
notify: notify:
- 'prometheus | promox exporter | restart service' - 'prometheus | proxmox exporter | restart service'
#when: not stat_result.stat.exists or exporter_upgrade == "yes" #when: not stat_result.stat.exists or exporter_upgrade == "yes"
tags: ['prometheus_proxmox'] tags: ['prometheus_proxmox']
- name: 'promox exporter | systemd | enable service' - name: 'proxmox exporter | systemd | enable service'
systemd: systemd:
daemon_reload: yes daemon_reload: yes
enabled: yes enabled: yes