title: Need to append output to a file
body: <p>In the below code will be running repeatedly up-to 8 times, Output will be different each time. I need to save that output in a file without deleting the previously added output to the same file.</p>
  
  <p>But here, it deletes the previous output and adds the new output to that file.</p>
  
  <p>So the output will be only of the last one.</p>
  
  <p>Can you please help me find the solution for this.</p>
  
  <pre><code>  - name: save output to config backup directory
      copy:
        content: " {{ output.stdout[0] }}{{output.stdout[1] }}"
        dest: /home/hhh.ghydggxxxx.xx/paxxxx/playbook-xx/vlan351/port_output/{{inventory_hostname}}.txt
      delegate_to: localhost
  </code></pre>