2019-12-30 16:07:31 +00:00
|
|
|
- apt:
|
|
|
|
name: python3
|
|
|
|
state: present
|
2019-12-30 16:47:45 +00:00
|
|
|
update_cache: yes
|
2019-12-30 16:16:34 +00:00
|
|
|
|
2019-12-30 16:27:43 +00:00
|
|
|
- apt:
|
|
|
|
name: gcc
|
|
|
|
state: present
|
2019-12-30 16:47:45 +00:00
|
|
|
|
2019-12-30 16:07:31 +00:00
|
|
|
- apt:
|
|
|
|
name: python3-dev
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- apt:
|
2019-12-30 16:16:34 +00:00
|
|
|
name: python3-setuptools
|
2019-12-30 16:07:31 +00:00
|
|
|
state: present
|
|
|
|
|
|
|
|
- apt:
|
|
|
|
name: python3-pip
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- pip:
|
|
|
|
name: psutil
|
2019-12-30 16:19:32 +00:00
|
|
|
executable: pip3
|
2019-12-30 16:07:31 +00:00
|
|
|
|
|
|
|
- pip:
|
|
|
|
name: statsd
|
2019-12-30 16:19:32 +00:00
|
|
|
executable: pip3
|
2019-12-30 16:07:31 +00:00
|
|
|
|
|
|
|
- git:
|
|
|
|
repo: 'https://git.keks.cloud/kekskurse/monitoring.py.git'
|
|
|
|
dest: /opt/monitoring.py
|
2019-12-30 17:03:44 +00:00
|
|
|
update: yes
|
2019-12-30 16:07:31 +00:00
|
|
|
|
|
|
|
- template:
|
|
|
|
src: monitoringpy.service.j2
|
|
|
|
dest: /etc/systemd/system/monitoringpy.service
|
|
|
|
|
|
|
|
- systemd:
|
2019-12-30 17:15:28 +00:00
|
|
|
state: restarted
|
2019-12-30 16:07:31 +00:00
|
|
|
enabled: yes
|
|
|
|
name: monitoringpy.service
|