--- ## 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