2024-06-08 22:23:49 +02:00
|
|
|
- hosts: datacenter
|
|
|
|
name: Install mqtt_srv
|
|
|
|
ignore_unreachable: false
|
2024-06-08 22:29:12 +02:00
|
|
|
become: True
|
2024-06-08 22:23:49 +02:00
|
|
|
tasks:
|
|
|
|
- name: Upload service config
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: services/mqtt_srv.service
|
|
|
|
dest: /etc/systemd/system/
|
|
|
|
|
|
|
|
- name: Upload service script
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: scripts/mqtt_srv.py
|
|
|
|
dest: /usr/bin/
|
2024-06-08 22:31:52 +02:00
|
|
|
mode: '755'
|
2024-06-08 22:34:41 +02:00
|
|
|
owner: root
|
|
|
|
- name: Install bottle python package
|
|
|
|
ansible.builtin.pip:
|
|
|
|
name:
|
|
|
|
- paho-mqtt
|
|
|
|
- getmac
|
2024-06-08 22:52:55 +02:00
|
|
|
- ping3
|
2024-06-08 22:55:26 +02:00
|
|
|
- psutil
|
|
|
|
- autorandr
|