35 lines
539 B
YAML
35 lines
539 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
|
|
|
|
- pip:
|
|
name: statsd
|
|
|
|
- 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
|