r/collectd: Manage collectd.d directory

The `/etc/collectd.d` directory is created by the RPM package on
machines running a Red Hat-based Linux distribution, but it may not
always be present on other machines.
collectd-buildroot
Dustin 2022-06-28 09:42:22 -05:00
parent a3608f187c
commit c983238f24
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@
tags: tags:
- collectd-config - collectd-config
- name: ensure collectd config drop-in directory exists
file:
path: /etc/collectd.d
mode: u=rwx,go=rx
state: directory
tags:
- collectd-config
- name: ensure collectd directory exists - name: ensure collectd directory exists
file: file:
path: /etc/collectd path: /etc/collectd