I am trying to format following command tasks over multiple lines.
tasks:
...
- name: Run the python file
command: "{{ lookup('env','HOME') }}/bin/pythonfile.py \"{{ cmd_status.stdout }}\" {{ test_number }}"
Works without formatting. pythonfile is executed properly. I tried formatting with >:
tasks:
...
- name: Run the python file
command: >
"{{ lookup('env','HOME') }}/bin/pythonfile.py \"{{ cmd_status.stdout }}\" {{ test_number }}"
and it gives:
"msg": "[Errno 2] No such file or directory",
Debug:
"invocation": {
"module_args": {
"_raw_params": "\"/home/bin/pythonfile.py
Any suggestions on formatting the command line over multiple lines.