Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,6 +1,6 @@
---
- name: Clone source
git:
ansible.builtin.git:
repo: https://github.com/polyfloyd/mqtt-exporter.git
version: main
dest: /opt/mqtt_exporter
@ -8,7 +8,7 @@
notify: restart mqtt_exporter
- name: Install apt dependencies
apt:
ansible.builtin.apt:
name:
- python3-paho-mqtt
- python3-prometheus-client
@ -16,7 +16,7 @@
state: present
- name: Install service
template:
ansible.builtin.template:
src: mqtt_exporter.service
dest: /etc/systemd/system/mqtt_exporter.service
owner: root
@ -27,7 +27,7 @@
- restart mqtt_exporter
- name: Install config file
template:
ansible.builtin.template:
src: mqtt_exporter_config.yaml
dest: /etc/mqtt_exporter.yaml
owner: root
@ -37,10 +37,10 @@
- daemon reload
- restart mqtt_exporter
- meta: flush_handlers
- ansible.builtin.meta: flush_handlers
- name: Start service
systemd:
ansible.builtin.systemd:
name: mqtt_exporter
state: started
enabled: true