monitoringpy/tasks/main.yml
2019-12-30 17:27:43 +01:00

41 lines
626 B
YAML

- apt:
name: python3
state: present
- 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: no
- template:
src: monitoringpy.service.j2
dest: /etc/systemd/system/monitoringpy.service
- systemd:
state: started
enabled: yes
name: monitoringpy.service