diff --git a/tasks/exporter/services/proxmox.yml b/tasks/exporter/services/proxmox.yml index 76da020..c83efdb 100644 --- a/tasks/exporter/services/proxmox.yml +++ b/tasks/exporter/services/proxmox.yml @@ -9,20 +9,20 @@ - name: 'proxmox exporter | create dedicated venv path' file: - path: "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" + path: "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" state: directory tags: ['prometheus_proxmox'] - name: 'proxmox exporter | create dedicated venv' command: - cmd: python3 -m venv "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" + cmd: python3 -m venv "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" tags: ['prometheus_proxmox'] - name: 'proxmox exporter | install package through pip3' pip: name: - prometheus-pve-exporter - venv: "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" + venv: "{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}" tags: ['prometheus_proxmox'] - name: 'proxmox exporter | configuration' diff --git a/templates/systemd/prometheus-proxmox-exporter.service.j2 b/templates/systemd/prometheus-proxmox-exporter.service.j2 index b457c82..dcff7f4 100644 --- a/templates/systemd/prometheus-proxmox-exporter.service.j2 +++ b/templates/systemd/prometheus-proxmox-exporter.service.j2 @@ -5,6 +5,6 @@ Wants=network.target [Service] Restart=on-failure -ExecStart="{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}"/bin/pve_exporter --config.file /etc/default/prometheus-proxmox-exporter --web.listen-address {{ prometheus_proxmox_exporter_node }}:{{ prometheus_proxmox_exporter_port | default('9221') }} +ExecStart="{{ prometheus_proxmox_venv_path | default('/opt/venv/prometheus-pve-exporter') }}"/bin/pve_exporter --config.file /etc/default/prometheus-proxmox-exporter --web.listen-address {{ prometheus_proxmox_exporter_node }}:{{ prometheus_proxmox_exporter_port | default('9221') }} [Install] WantedBy=multi-user.target