diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml index 86082efac7..4e6d718d04 100644 --- a/roles/collectd/base/tasks/main.yml +++ b/roles/collectd/base/tasks/main.yml @@ -46,7 +46,7 @@ - collectd notify: - restart collectd - when: collectd_apache is defined and env == 'staging' + when: collectd_apache is defined && env == 'staging' - name: /etc/collectd/apache.conf copy: src=apache.conf dest=/etc/collectd.d/apache.conf @@ -54,7 +54,7 @@ - collectd notify: - restart collectd - when: collectd_apache is defined and env == 'staging' + when: collectd_apache is defined && env == 'staging' # Three tasks for handling our (two) custom selinux modules.