瀏覽代碼

Issue #722: Updated main.yml

Signed-off-by: blesson-james <blesson_james@Dellteam.com>
blesson-james 3 年之前
父節點
當前提交
666f83f3ed
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      roles/k8s_start_services/tasks/main.yml

+ 7 - 0
roles/k8s_start_services/tasks/main.yml

@@ -22,6 +22,13 @@
   include_tasks: check_k8s_pods.yml
   tags: install
 
+- name: Install community.grafana collection
+  command: ansible-galaxy collection install community.grafana
+  changed_when: True
+  tags: install
+  delegate_to: localhost
+  when: hostvars['127.0.0.1']['control_plane_status']
+
 - name: Configure Nginx/Prometheus/Grafana
   include_tasks: configure_nginx_prom_grafana.yml
   when: