browbeat/ansible/install/collectd.yml
Asma Syed Hameed 02e56b8258 Automate collectd_container var
This patch automates collectd_container var to set to true  if running on OpenStack version
Stein or later and set to false for below OpenStack version which was manually done earlier.

Change-Id: Idd61f060a088caa1eae9d2a80e3c7ceb5debc424
2020-10-23 08:55:56 +00:00

12 lines
383 B
YAML

---
- name: set fact collectd_container
import_playbook: pre-collectd.yml
- name: Run containerized collectd (Stein and greater recommended)
import_playbook: collectd-container.yml
when: hostvars['undercloud']['collectd_container']
- name: Run collectd installed through RPMs
import_playbook: collectd-baremetal.yml
when: not hostvars['undercloud']['collectd_container']