42 lines
645 B
YAML
42 lines
645 B
YAML
- apt:
|
|
name: python3
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- apt:
|
|
name: gcc
|
|
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: yes
|
|
|
|
- template:
|
|
src: monitoringpy.service.j2
|
|
dest: /etc/systemd/system/monitoringpy.service
|
|
|
|
- systemd:
|
|
state: started
|
|
enabled: yes
|
|
name: monitoringpy.service
|