From d6ffeeea84c90a2aa438b145b5a8649105c5b5a6 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 22 Apr 2022 20:54:12 +0530 Subject: [PATCH 1/7] Delete ansible/roles/telemetry-installer directory --- .../scenarios/install_telemetry_tools.yml | 374 ------------------ .../roles/telemetry-installer/tasks/main.yml | 19 - 2 files changed, 393 deletions(-) delete mode 100644 ansible/roles/telemetry-installer/scenarios/install_telemetry_tools.yml delete mode 100644 ansible/roles/telemetry-installer/tasks/main.yml diff --git a/ansible/roles/telemetry-installer/scenarios/install_telemetry_tools.yml b/ansible/roles/telemetry-installer/scenarios/install_telemetry_tools.yml deleted file mode 100644 index 4376d7afb..000000000 --- a/ansible/roles/telemetry-installer/scenarios/install_telemetry_tools.yml +++ /dev/null @@ -1,374 +0,0 @@ -# Copyright 2019 The OpenSDS Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -# ----Stop all services to all ansible re-run in case of failure----- -- name: stop all services - shell: "{{ item }}" - with_items: - - systemctl stop prometheus node_exporter alertmanager pushgateway sysstat lvm_exporter - become: yes - ignore_errors: yes - -- name: add users (prometheus, node_exporter, pushgateway & alertmanager) - user: - name: "{{ item }}" - shell: /bin/false - createhome: no - with_items: - - prometheus - - node_exporter - - pushgateway - - alertmanager - - grafana - become: yes - -- name: create telemetry directories - file: - path: "{{ item.path }}" - owner: "{{ item.owner }}" - group: "{{ item.group }}" - mode: '0755' - state: directory - with_items: - - { path: '/etc/prometheus', owner: 'prometheus', group: 'prometheus' } - - { path: '/var/lib/prometheus', owner: 'prometheus', group: 'prometheus' } - - { path: '/etc/alertmanager', owner: 'alertmanager', group: 'alertmanager' } - - { path: '/var/lib/alertmanager', owner: 'alertmanager', group: 'alertmanager' } - - { path: '/etc/grafana', owner: 'grafana', group: 'grafana' } - - { path: '/var/lib/grafana', owner: 'grafana', group: 'grafana' } - become: yes - -# ---------start to install prometheus--------- -- name: check for telemetry packages existed - stat: - path: "{{ telemetry_work_dir }}" - register: telemetryfilesexisted - -- name: create telemetry work directory if it doesn't exist - file: - path: "{{ telemetry_work_dir }}" - state: directory - when: - - telemetryfilesexisted.stat.exists is undefined or telemetryfilesexisted.stat.exists == false - -- name: download and extract the telemetry, prometheus - unarchive: - src: https://github.com/prometheus/prometheus/releases/download/v2.9.2/prometheus-2.9.2.linux-amd64.tar.gz - dest: "{{ telemetry_work_dir }}/" - remote_src: yes - become: yes - when: - - telemetryfilesexisted.stat.exists is undefined or telemetryfilesexisted.stat.exists == False - -- name: download and extract the telemetry, node_exporter - unarchive: - src: https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz - dest: "{{ telemetry_work_dir }}/" - remote_src: yes - become: yes - when: - - telemetryfilesexisted.stat.exists is undefined or telemetryfilesexisted.stat.exists == False - -- name: download and extract the telemetry, pushgateway - unarchive: - src: https://github.com/prometheus/pushgateway/releases/download/v0.8.0/pushgateway-0.8.0.linux-amd64.tar.gz - dest: "{{ telemetry_work_dir }}/" - remote_src: yes - become: yes - when: - - telemetryfilesexisted.stat.exists is undefined or telemetryfilesexisted.stat.exists == False - -- name: download and extract the telemetry, alertmanager - unarchive: - src: https://github.com/prometheus/alertmanager/releases/download/v0.16.2/alertmanager-0.16.2.linux-amd64.tar.gz - dest: "{{ telemetry_work_dir }}/" - remote_src: yes - become: yes - when: - - telemetryfilesexisted.stat.exists is undefined or telemetryfilesexisted.stat.exists == False - -- name: install prometheus - shell: "{{ item }}" - with_items: - - cp prometheus-2.9.2.linux-amd64/prometheus /usr/local/bin/prometheus - - cp prometheus-2.9.2.linux-amd64/promtool /usr/local/bin/promtool - - chown -R prometheus:prometheus /usr/local/bin/prometheus - - chown -R prometheus:prometheus /usr/local/bin/promtool - - cp -r prometheus-2.9.2.linux-amd64/consoles /etc/prometheus - - cp -r prometheus-2.9.2.linux-amd64/console_libraries /etc/prometheus - - chown -R prometheus:prometheus /etc/prometheus/consoles - - chown -R prometheus:prometheus /etc/prometheus/console_libraries - become: yes - args: - chdir: "{{ telemetry_work_dir }}" - -- name: configuring prometheus - shell: "{{ item }}" - with_items: - - bash ./script/set_prometheus_config.sh - - chown prometheus:prometheus /etc/prometheus/prometheus.yml - become: yes - -- name: running prometheus - shell: "{{ item }}" - with_items: - - bash ./script/set_prometheus_service.sh - - systemctl daemon-reload - - systemctl start prometheus - become: yes - -- name: check status of prometheus service - shell: "{{ item }}" - with_items: - - systemctl status prometheus - become: yes - -# ---------start to install node_exporter--------- -- name: install node_exporter - shell: "{{ item }}" - with_items: - - cp node_exporter-0.17.0.linux-amd64/node_exporter /usr/local/bin/ - - chown node_exporter:node_exporter /usr/local/bin/node_exporter - become: yes - args: - chdir: "{{ telemetry_work_dir }}" - -- name: edit node_exporter.service - shell: "{{ item }}" - with_items: - - bash ./script/set_node_exporter_service.sh - become: yes - -- name: start node_exporter - shell: "{{ item }}" - with_items: - - systemctl daemon-reload - - systemctl start node_exporter - become: yes - -- name: check status of node_exporter service - shell: "{{ item }}" - with_items: - - systemctl status node_exporter - become: yes - -- name: configuring prometheus to scrape node_exporter - shell: "{{ item }}" - with_items: - - bash ./script/mod_prometheus_config_for_node_exporter.sh - become: yes - -- name: restart prometheus - shell: "{{ item }}" - with_items: - - systemctl restart prometheus - become: yes - -- name: check status of prometheus service - shell: "{{ item }}" - with_items: - - systemctl status prometheus - become: yes - -# ---------start to install pushgateway--------- -- name: install pushgateway - shell: "{{ item }}" - with_items: - - cp pushgateway-0.8.0.linux-amd64/pushgateway /usr/local/bin/ - - chown pushgateway:pushgateway /usr/local/bin/pushgateway - become: yes - args: - chdir: "{{ telemetry_work_dir }}" - -- name: edit pushgateway.service - shell: "{{ item }}" - with_items: - - bash ./script/set_pushgateway_service.sh - become: yes - -- name: start pushgateway - shell: "{{ item }}" - with_items: - - systemctl daemon-reload - - systemctl start pushgateway - become: yes - -- name: check status of pushgateway service - shell: "{{ item }}" - with_items: - - systemctl status pushgateway - become: yes - -- name: configure, restart and check status of prometheus for pushgateway service - shell: "{{ item }}" - with_items: - - bash ./script/mod_prometheus_config_for_pushgateway.sh - - systemctl restart prometheus - - systemctl status prometheus - become: yes -# ---------start to install sysstat--------- -- name: install "sysstat" package - apt: - name: sysstat - become: yes - -- name: start sysstat service and check - shell: "{{ item }}" - with_items: - - sed -i 's/^ENABLED=.*/ENABLED="true"/g' /etc/default/sysstat - - systemctl restart sysstat - - systemctl status sysstat - become: yes - -# ---------start lvm_exporter--------- -- name: copy lvm_exporter - shell: "{{ item }}" - tags: - - lvm_exporter - with_items: - - cp {{ hotpot_work_dir }}/bin/lvm_exporter /usr/local/bin/ - - chown root:root /usr/local/bin/lvm_exporter - become: yes - -- name: edit lvm_exporter.service - shell: "{{ item }}" - tags: - - lvm_exporter - with_items: - - bash ./script/set_lvm_exporter_service.sh {{ lvm_exporter_port }} - become: yes - -- name: start lvm_exporter - shell: "{{ item }}" - tags: - - lvm_exporter - with_items: - - systemctl daemon-reload - - systemctl start lvm_exporter - become: yes - -- name: check status of lvm_exporter service - shell: "{{ item }}" - tags: - - lvm_exporter - with_items: - - systemctl status lvm_exporter - become: yes - -- name: configuring prometheus to scrape lvm_exporter - tags: - - lvm_exporter - shell: "{{ item }}" - with_items: - - bash ./script/mod_prometheus_config_for_lvm_exporter.sh {{ lvm_exporter_port }} - become: yes - -- name: restart prometheus - tags: - - lvm_exporter - shell: "{{ item }}" - with_items: - - systemctl restart prometheus - become: yes - -- name: check status of prometheus service - tags: - - lvm_exporter - shell: "{{ item }}" - with_items: - - systemctl status prometheus - become: yes -# ---------start to install alertmanager--------- -- name: install alertmanager - shell: "{{ item }}" - with_items: - - cp alertmanager-0.16.2.linux-amd64/alertmanager /usr/local/bin/ - - cp alertmanager-0.16.2.linux-amd64/alertmanager.yml /etc/alertmanager - - chown alertmanager:alertmanager /usr/local/bin/alertmanager - - chown alertmanager:alertmanager /etc/alertmanager/alertmanager.yml - become: yes - args: - chdir: "{{ telemetry_work_dir }}" - -- name: edit alertmanager.service - shell: "{{ item }}" - with_items: - - bash ./script/set_alertmanager_service.sh - become: yes - -- name: start alertmanager - shell: "{{ item }}" - with_items: - - systemctl daemon-reload - - systemctl start alertmanager - - systemctl enable alertmanager - become: yes - -- name: configuring prometheus to scrape alertmanager - shell: "{{ item }}" - with_items: - - bash ./script/mod_prometheus_config_for_alertmanager.sh - become: yes - -- name: restart prometheus - shell: "{{ item }}" - with_items: - - systemctl restart prometheus - become: yes - -- name: check status of prometheus service - shell: "{{ item }}" - with_items: - - systemctl status prometheus - become: yes - -# ---------start to install grafana--------- -- name: copy configuration for grafana - shell: "{{ item }}" - with_items: - - "cp -f ./telemetry/grafana/grafana.ini {{ grafana_conf_home }}" - - "cp -rf ./../contrib/grafana/dashboards {{ grafana_data_home }}" - - "cp -rf ./telemetry/grafana/provisioning {{ grafana_data_home }}" - -- name: Setting prometheus url in grafana datasource - lineinfile: - dest: "{{ grafana_data_home }}/provisioning/datasources/prom_osds.yml" - regexp: '^(.*) url: (.*)$' - line: " url: {{ prometheus_url }}" - backrefs: yes - -- name: install grafana repository key - apt_key: - url: "{{ grafana_gpg_key }}" - state: present - become: yes - -- name: add grafana repository - apt_repository: - repo: "{{ grafana_repositroy }}" - state: present - become: yes - -- name: install "grafana" package - apt: - name: grafana - become: yes - -- name: start grafana - shell: "{{ item }}" - with_items: - - systemctl start grafana-server - - systemctl status grafana-server - become: yes \ No newline at end of file diff --git a/ansible/roles/telemetry-installer/tasks/main.yml b/ansible/roles/telemetry-installer/tasks/main.yml deleted file mode 100644 index 7e952f7b4..000000000 --- a/ansible/roles/telemetry-installer/tasks/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2019 The OpenSDS Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -- name: include scenarios/install_telemetry_tools.yml - tags: - - telemetry - include: scenarios/install_telemetry_tools.yml From d3d4f3547312bf2fb2f7df06ba80ad170fe924bb Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 22 Apr 2022 20:54:35 +0530 Subject: [PATCH 2/7] Delete ansible/roles/telemetry-uninstaller directory --- .../scenarios/clean_telemetry_tools.yml | 109 ------------------ .../telemetry-uninstaller/tasks/main.yml | 18 --- 2 files changed, 127 deletions(-) delete mode 100644 ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml delete mode 100644 ansible/roles/telemetry-uninstaller/tasks/main.yml diff --git a/ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml b/ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml deleted file mode 100644 index 655a6e4af..000000000 --- a/ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 2019 The OpenSDS Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -# ---------stop all telemetry services --------- -- name: stop all services - shell: "{{ item }}" - with_items: - - systemctl stop prometheus node_exporter alertmanager pushgateway sysstat lvm_exporter - become: yes - ignore_errors: yes - -# ---------start to clean grafana--------- -- name: clean grafana - shell: "{{ item }}" - with_items: - - apt purge -y grafana - - add-apt-repository -r "{{ grafana_repositroy }}" - ignore_errors: yes - become: yes - when: source_purge is undefined or source_purge != false - tags: clean - -# ---------start to clean alertmanager--------- -- name: clean alertmanager - shell: "{{ item }}" - with_items: - - rm -rf /etc/systemd/system/alertmanager.service - - rm -rf /usr/local/bin/alertmanager - - rm -rf /etc/alertmanager - - userdel -r alertmanager - ignore_errors: yes - become: yes - -# ---------start to clean pushgateway--------- -- name: clean pushgateway - shell: "{{ item }}" - with_items: - - rm -rf /etc/systemd/system/pushgateway.service - - rm -rf /usr/local/bin/pushgateway - - userdel -r pushgateway - ignore_errors: yes - become: yes - -# ---------start to clean node_exporter--------- -- name: clean node_exporter - shell: "{{ item }}" - with_items: - - rm -rf /etc/systemd/system/node_exporter.service - - rm -rf /usr/local/bin/node_exporter - - userdel -r node_exporter - ignore_errors: yes - become: yes - -# ---------start to clean prometheus--------- -- name: clean prometheus - shell: "{{ item }}" - with_items: - - rm -rf /etc/systemd/system/prometheus.service - - rm -rf /etc/prometheus/prometheus.yml - - rm -rf /etc/prometheus - - rm -rf /usr/local/bin/promtool - - rm -rf /usr/local/bin/prometheus - - rm -rf /var/lib/prometheus - - userdel -r prometheus - ignore_errors: yes - become: yes - -# ---------start to clean sysstat--------- -- name: clean sysstat - shell: "{{ item }}" - with_items: - - apt purge -y sysstat - ignore_errors: yes - become: yes - when: source_purge is undefined or source_purge != false - tags: clean - -# ---------start to clean lvm_exporter--------- -- name: clean lvm_exporter - shell: "{{ item }}" - tags: - - lvm_exporter_clean - with_items: - - rm -rf /etc/systemd/system/lvm_exporter.service - - rm -rf /usr/local/bin/lvm_exporter - ignore_errors: yes - become: yes - -- name: clean all created work directories - file: - path: "{{ telemetry_work_dir }}" - state: absent - force: yes - ignore_errors: yes - become: yes - when: source_purge is undefined or source_purge != false - tags: clean diff --git a/ansible/roles/telemetry-uninstaller/tasks/main.yml b/ansible/roles/telemetry-uninstaller/tasks/main.yml deleted file mode 100644 index e544f49f3..000000000 --- a/ansible/roles/telemetry-uninstaller/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2019 The OpenSDS Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -- name: include scenarios/clean_telemetry_tools.yml - include: scenarios/clean_telemetry_tools.yml - when: enable_telemetry_tools == true From 227175d938de6e9c9e9ae4832c868bb2e753ff51 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 22 Apr 2022 20:56:04 +0530 Subject: [PATCH 3/7] Delete telemetry.yml --- ansible/group_vars/telemetry.yml | 53 -------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 ansible/group_vars/telemetry.yml diff --git a/ansible/group_vars/telemetry.yml b/ansible/group_vars/telemetry.yml deleted file mode 100644 index 64bfd1e3c..000000000 --- a/ansible/group_vars/telemetry.yml +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 2019 The OpenSDS Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - ---- -# Dummy variable to avoid error because ansible does not recognize the -# file as a good configuration file when no variable in it. -dummy: - -########### -# GENERAL # -########### - -# Do you need to install or clean up telemetry tools? -enable_telemetry_tools: false - -# Grafana Repository config -grafana_repositroy: "deb https://packages.grafana.com/oss/deb stable main" -grafana_gpg_key: https://packages.grafana.com/gpg.key - -# Telementry configs to be updated in opensds.conf -prometheus_conf_home: /etc/prometheus/ -prometheus_conf_file: prometheus.yml -prometheus_url: 'http://{{ host_ip }}:9090' -alertmgr_conf_home: /etc/alertmanager/ -alertmgr_conf_file: alertmanager.yml -alertmgr_url: 'http://{{ host_ip }}:9093' -grafana_conf_home: /etc/grafana/ -grafana_data_home: /var/lib/grafana -grafana_conf_file: grafana.ini -grafana_url: 'http://{{ host_ip }}:3000' -grafana_restart_cmd: grafana-server -conf_reload_url: /-/reload - -prometheus_push_mechanism: 'NodeExporter' -prometheus_push_gateway_url: 'http://{{ host_ip }}:9091' -node_exporter_watch_folder: /root/prom_nodeexporter_folder/ -lvm_exporter_port: '9601' -kafka_endpoint: '{{ host_ip }}:9092' -kafka_topic: metrics - -opensds_conf_file: /etc/opensds/opensds.conf -telemetry_work_dir: /opt/opensds-telemetry-linux-amd64 From 5d734ef31e5bc23ff7504abfaefdb2c3fd89c367 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 6 May 2022 01:42:58 +0530 Subject: [PATCH 4/7] Delete telemetry.sls --- salt/file_roots/remove/telemetry.sls | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 salt/file_roots/remove/telemetry.sls diff --git a/salt/file_roots/remove/telemetry.sls b/salt/file_roots/remove/telemetry.sls deleted file mode 100644 index 3f3dfb7cc..000000000 --- a/salt/file_roots/remove/telemetry.sls +++ /dev/null @@ -1,4 +0,0 @@ -## opensds-installer/salt/srv/salt/remove/telemetry.sls -base: - '*': - - opensds.telemetry.clean From f7fbb8548caf6d6b5a1b24b34b834ca9f9fde2d7 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 6 May 2022 01:44:04 +0530 Subject: [PATCH 5/7] Delete telemetry.sls --- salt/file_roots/install/telemetry.sls | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 salt/file_roots/install/telemetry.sls diff --git a/salt/file_roots/install/telemetry.sls b/salt/file_roots/install/telemetry.sls deleted file mode 100644 index 5f6635eff..000000000 --- a/salt/file_roots/install/telemetry.sls +++ /dev/null @@ -1,4 +0,0 @@ -## opensds-installer/salt/srv/salt/install/telemetry.sls -base: - '*': - - opensds.telemetry From 766b8b9dd3513895fb721f3cbbc41de8ce540aa1 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 6 May 2022 01:47:08 +0530 Subject: [PATCH 6/7] Update site.yml --- ansible/site.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ansible/site.yml b/ansible/site.yml index b710c1a91..63da73836 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -47,7 +47,6 @@ - group_vars/auth.yml - group_vars/hotpot.yml - group_vars/osdsdb.yml - - group_vars/telemetry.yml gather_facts: false become: True tasks: @@ -207,22 +206,6 @@ name: dashboard-installer tags: dashboard -- name: deploy tools for telemetry - hosts: controllers - remote_user: root - vars_files: - - group_vars/common.yml - - group_vars/hotpot.yml - - group_vars/telemetry.yml - gather_facts: false - become: True - tasks: - - import_role: - name: telemetry-installer - when: - - enable_telemetry_tools == true - tags: telemetry - - name: Install Orchestration Manager hosts: controllers remote_user: root From cef73208dae9091f72a6a51f02d09e392ec4e1c9 Mon Sep 17 00:00:00 2001 From: UtkarshShah0 <93548048+UtkarshShah0@users.noreply.github.com> Date: Fri, 6 May 2022 01:50:27 +0530 Subject: [PATCH 7/7] Update clean.yml --- ansible/clean.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ansible/clean.yml b/ansible/clean.yml index f0dfaeca3..b6f08afd8 100644 --- a/ansible/clean.yml +++ b/ansible/clean.yml @@ -53,18 +53,3 @@ name: gelato-ha-uninstaller when: gelato_ha == true tags: gelato_ha - -- name: uninstall tools for telemetry - hosts: controllers - remote_user: root - vars_files: - - group_vars/common.yml - - group_vars/telemetry.yml - gather_facts: false - become: True - tasks: - - import_role: - name: telemetry-uninstaller - when: - - enable_telemetry_tools == true - tags: telemetry