monitoringpy/tasks/main.yml

38 lines
581 B
YAML

- apt:
name: python3
state: present
- apt:
name: python3-dev
state: present
- apt:
name: python3-setuptools
state: present
- apt:
name: python3-pip
state: present
- pip:
name: psutil
executable: pip3
- pip:
name: statsd
executable: pip3
- git:
repo: 'https://git.keks.cloud/kekskurse/monitoring.py.git'
dest: /opt/monitoring.py
update: no
- template:
src: monitoringpy.service.j2
dest: /etc/systemd/system/monitoringpy.service
- systemd:
state: started
enabled: yes
name: monitoringpy.service