title: Write Output to a local file and fetch from Control Machine in Ansible for Windows
body: <p>I've tested the following tasks for my playbook (<em>which worked in Linux host</em>) on Windows host but it seems to be unsuccessful</p>
  
  <pre><code>  - name: Create local report
      delegate_to: localhost
      file:
        dest: /tmp/report.csv
        state: touch
  
    - name: fetch file
      local_action:
        module: lineinfile
        dest: /tmp/report.csv
        line: "{{ output.stdout_lines }}"
        insertafter: EOF
  </code></pre>
  
  <p>I don't know if there are special modules for similar tasks on Windows host.</p>