diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml index 15502678cc..7a41f0b461 100644 --- a/roles/collectd/base/tasks/main.yml +++ b/roles/collectd/base/tasks/main.yml @@ -49,12 +49,12 @@ # apache - localhost only - pretty much any apache server - name: install collectd-apache - yum: state=present name=collectd-apache and ansible_distribution_major_version|int < 22 + yum: state=present name=collectd-apache tags: - collectd notify: - restart collectd - when: collectd_apache is defined + when: collectd_apache is defined and ansible_distribution_major_version|int < 22 - name: /etc/collectd/apache.conf copy: src=apache.conf dest=/etc/collectd.d/apache.conf