title: Ansible PlayBook to run a SQL script file
body: <p>I am trying to create an yaml script to execute the SQL script file Test.sql through playbook</p>
  
  <p>Below yaml script ended with error, please suggest the exact syntax</p>
  
  <pre><code>## Groups:
  [Database]
  xxxxxxxxxxxxxxxxxxxxxx.xxxxx.xxxxxxx.xxxx.xxx
  
  ##Sample.yaml
  
  - name: "SQL Script Execution"
  hosts: Database
  tasks:
  - win_command: sqlcmd -S {{ Database }} -i "D:\\abc\\sdfbv\\Test.sql"
    register: sqlcmd_out
  </code></pre>