conditional options for the command module beyond creates, and removes

I see a need for running a command remotely to determine whether a command play should be executed. There is a lot that ‘creates’, and ‘removes’ doesn’t cover. I’d like to support file test operators and more. I realize this could be accomplished using a preceding command play that sets a variable. Does this seem worthwhile, or is there another way?

The “when” conditional already exists in ansible for doing this for an arbitrary module, yes.

As such, we are unlikely to want to see arbitrary tests added to the command module.