configpolicy/collectd.yml

32 lines
506 B
YAML

- hosts: collectd
roles:
- role: collectd
tags:
- collectd
- role: collectd-version
tags:
- collectd-version
- hosts: collectd-sensors
roles:
- role: collectd-sensors
tags:
- collectd
- collectd-sensors
- 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