From 330a0d8405702f930fbf2c73b0e43b615b035df1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 8 May 2020 15:39:28 -0700 Subject: [PATCH] iad2: log02.iad2. Seems we do not have collectd-ping, or collectd-rabbitmq in epel8 yet Signed-off-by: Kevin Fenzi --- roles/collectd/server/tasks/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/collectd/server/tasks/main.yml b/roles/collectd/server/tasks/main.yml index 4edb4f09bb..9b89786031 100644 --- a/roles/collectd/server/tasks/main.yml +++ b/roles/collectd/server/tasks/main.yml @@ -2,7 +2,7 @@ # collectd server setup # install pkg -- name: install collectd server packages +- name: install collectd server packages (rhel 7) package: name={{ item }} state=present with_items: - collectd-rrdtool @@ -14,6 +14,19 @@ tags: - config - collectd/server + when: ansible_distribution_major_version|int == 7 + +- name: install collectd server packages (rhel 8) + package: name={{ item }} state=present + with_items: + - collectd-rrdtool + - collectd-web + notify: + - restart collectd + tags: + - config + - collectd/server + when: ansible_distribution_major_version|int == 8 # install collectd ping config - name: install collectd ping config