services/power-mqtt: Rewrite to Python
This commit is contained in:
parent
1e9334ecfb
commit
eff6091c5a
4 changed files with 35 additions and 23 deletions
|
@ -1,7 +1,12 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name: [python3-paho-mqtt, python3-requests]
|
||||
|
||||
- name: Install power-mqtt
|
||||
template:
|
||||
src: power-mqtt.sh
|
||||
dest: /var/lib/power-mqtt.sh
|
||||
src: power-mqtt.py
|
||||
dest: /var/lib/power-mqtt.py
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue