Ansible How to copy the content to file with user input
<p>I am just trying to write ansible-playbook where I have to give an input to the file content.</p>

<p>For Example</p>

<pre><code>Enter the File Lists
7124 /var/www/A.txt
7125 /var/www/B.txt
</code></pre>

<p>This has to update on file <code>/tmp/filelist.txt</code> as a content.</p>

<p>When I do the cat </p>

<pre><code>cat /tmp/filelist.txt
7124 /var/www/A.txt
7125 /var/www/B.txt
</code></pre>

<p>I tried using copy content, but it could not able to achieve.</p>