As I say in the intro to the post, I have strong opinions on using command and shell properly - most of those opinions are encoded into ansible-lint checks.
Would be interested in any feedback, particularly anything that could be done better with command/shell that I’ve missed.
http://willthames.github.io/2016/09/21/using-command-and-shell-in-ansible.html
Will