How to Write Multiline Shell Scripts in Ansible
If you need to write a shell script in Ansible, you probably have something like this:
But how do you write multiline shell scripts with this format?
How to write Multiline shell scripts
Just note that Ansible can do some strange things with manipulations of arguments, so you may want to follow something like this:
Or better yet, wrap them: