blob: ec6b14d96a34126f609c0fed0dddd78cedfcb840 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
## TODO: create zfs or lvm volume depending on prometheus_server_(zfs|lvm) being defined
- name: install apt packages
apt:
name: prometheus
state: present
- name: listen on localhost only
lineinfile:
path: /etc/default/prometheus
regexp: '^ARGS='
line: 'ARGS="--web.listen-address=127.0.0.1:9090 --storage.tsdb.retention={{ prometheus_server_retention }}"'
notify: restart prometheus
|