---

- name: Copy in /usr/local/bin/fedmsg-service-collectd
  template: >
    src=fedmsg-service-collectd.py
    dest="/usr/local/bin/fedmsg-service-collectd-{{ process }}"
    mode=0755
  tags:
  - collectd
  - collectd/fedmsg
  notify: restart collectd

- name: Copy in /etc/collectd.d/fedmsg-service.conf
  template: >
    src=fedmsg-service.conf
    dest=/etc/collectd.d/{{ process }}.conf
  tags:
  - collectd
  - collectd/fedmsg
  notify: restart collectd
