# prometheus ~~ roles/prometheus/tasks/main.yml # init prometheus database, mainly used by grafana --- - name: install prometheus package: name=prometheus state=present - name: ensure prometheus service is started and enabled service: name=prometheus state=restarted enabled=true