Stuff
This commit is contained in:
parent
5518bbafe0
commit
f10764dec1
1 changed files with 10 additions and 0 deletions
|
@ -2,41 +2,51 @@
|
||||||
name: python3
|
name: python3
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
become: true
|
||||||
|
|
||||||
- apt:
|
- apt:
|
||||||
name: gcc
|
name: gcc
|
||||||
state: present
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- apt:
|
- apt:
|
||||||
name: python3-dev
|
name: python3-dev
|
||||||
state: present
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- apt:
|
- apt:
|
||||||
name: python3-setuptools
|
name: python3-setuptools
|
||||||
state: present
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- apt:
|
- apt:
|
||||||
name: python3-pip
|
name: python3-pip
|
||||||
state: present
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- pip:
|
- pip:
|
||||||
name: psutil
|
name: psutil
|
||||||
executable: pip3
|
executable: pip3
|
||||||
|
become: true
|
||||||
|
|
||||||
- pip:
|
- pip:
|
||||||
name: statsd
|
name: statsd
|
||||||
executable: pip3
|
executable: pip3
|
||||||
|
become: true
|
||||||
|
|
||||||
- git:
|
- git:
|
||||||
repo: 'https://git.keks.cloud/kekskurse/monitoring.py.git'
|
repo: 'https://git.keks.cloud/kekskurse/monitoring.py.git'
|
||||||
dest: /opt/monitoring.py
|
dest: /opt/monitoring.py
|
||||||
update: yes
|
update: yes
|
||||||
|
become: true
|
||||||
|
|
||||||
- template:
|
- template:
|
||||||
src: monitoringpy.service.j2
|
src: monitoringpy.service.j2
|
||||||
dest: /etc/systemd/system/monitoringpy.service
|
dest: /etc/systemd/system/monitoringpy.service
|
||||||
|
become: true
|
||||||
|
|
||||||
- systemd:
|
- systemd:
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
name: monitoringpy.service
|
name: monitoringpy.service
|
||||||
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue