title: Grafana provision elasticsearch datastore over ansible
body: <p>Anybody can advise how to map the configuration properties seen in the Grafana UI to their equivalents in the configuration file over Ansible? </p>
  
  <p>This is what I have that is working well:</p>
  
  <pre><code>      grafana_datasources:
          - name: elasticsearch
            type: elasticsearch
            access: server
            database: "metricbeat-7.5.2"
            url: 'http://localhost:9200'
            readOnly: false
            editable: true
            basicAuth: false
            jsonData:
              timeField: "@timestamp"
              esVersion: 70
              maxConcurrentShardRequests: 5 
  </code></pre>
  
  <p>I managed to set up everything except Auth section. Actually I setup only "Basic auth" field by adding "basicAuth: false". Now I am stuck with setting up the following fields:</p>
  
  <ul>
  <li>TLS Client Auth</li>
  <li>Skip TLS Verify</li>
  <li>Forward OAuth Identity</li>
  </ul>
  
  <p>I tried with adding:</p>
  
  <pre><code>tlsAuth: false  
  tlsAuthWithCACert: false 
  tlsSkipVerify: false 
  
  </code></pre>
  
  <p>but nothing happens. I also tried with adding the same to jsonData but still no luck...</p>
  
  <p>Thanks in advance.</p>
  
  <p>Cheers,
  Dragan</p>