I have following ansible playbook ,which will import few dashboards in an 
iteration, but i am trying to import dashboard based on input 
parameter(like kafka,kubernetes etc).

could anyone help please.

-Playbook:
---------------------
--
- name: Import Grafana dashboard
  grafana_dashboard:
    grafana_url: <hostIP>:3000
    state: present
    message: Updated by ansible
    overwrite: yes
    path: "{{ item }}"
  with_items:
      - /home/centos/1-12-dc-os-global-kafka-dashboard_rev4.json
      - 
/home/centos/1-kubernetes-deployment-statefulset-daemonset-metrics_rev1.json
      - 
/home/centos/Kubernetes-cluster-monitoring-via-Prometheus-DICE-test.json
 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f40186b8-667f-4ae0-b47a-3496a9077c48%40googlegroups.com.

Reply via email to