This is more of a styling question. I have this ugly piece of code:
- name: download something
shell: "wget https://www.{{ my_var }}\
a_string\
{{ a_very_long_string_to_show_what_i_mean }}"
In my opinion, this looks very ugly. Since the URL must be a 'whole', without spaces and quoting and whatnot, I need to escape each newline with a \. Yuck.
However, I can't use breaks, e.g. > or | since that will include spaces in the end result, and the code will error.
Following the ansible-lint guidelines, I do not want the string size on a single line to be larger than something about 84 characters. In this example, when I have to download a file, I can't simply put the string on a single line.
Expected output:
- name: pretty download something
shell:
wget https://www.{{ my_var }}
a_string
{{ a_very_long_string_to_show_what_i_mean }}