---

- name: install python-retask
  yum: name=python-retask state=present
  tags:
  - collectd

- name: Copy in /usr/local/bin/fcomm-queue-collectd
  copy: >
    src=fcomm-queue-collectd.py
    dest=/usr/local/bin/fcomm-queue-collectd
    mode=0755
  tags:
  - collectd
  notify: restart collectd

- name: Copy in /etc/collectd.d/fcomm-queue.conf
  copy: >
    src=fcomm-queue.conf
    dest=/etc/collectd.d/fcomm-queue-conf
  tags:
  - collectd
  notify: restart collectd
