configpolicy/collectd.yml

25 lines
395 B
YAML

- hosts: collectd
roles:
- role: collectd
tags:
- collectd
- role: collectd-version
tags:
- collectd-version
- hosts: collectd-prometheus
roles:
- role: collectd-prometheus
tags:
- collectd
- collectd-prometheus
- hosts: collectd
tasks:
- name: ensure collectd is running
service:
name: collectd
state: started
tags:
- service