title: How to format a long Ansible command module task over multiple lines?
body: <p>I am trying to format following command tasks over multiple lines.</p>
  
  <pre><code>tasks:
      ...
      - name: Run the python file
        command: "{{ lookup('env','HOME') }}/bin/pythonfile.py \"{{ cmd_status.stdout }}\" {{ test_number }}"
  </code></pre>
  
  <p>Works without formatting. <code>pythonfile</code> is executed properly. I tried formatting with <code>&gt;</code>:</p>
  
  <pre><code>tasks:
      ...
      - name: Run the python file
        command: &gt;
          "{{ lookup('env','HOME') }}/bin/pythonfile.py \"{{ cmd_status.stdout }}\" {{ test_number }}"
  </code></pre>
  
  <p>and it gives:</p>
  
  <blockquote>
    <p>"msg": "[Errno 2] No such file or directory",</p>
  </blockquote>
  
  <pre><code>Debug:
  "invocation": {
      "module_args": {
          "_raw_params": "\"/home/bin/pythonfile.py
  </code></pre>
  
  <p>Any suggestions on formatting the command line over multiple lines.</p>