Pass multiple commands in ad-hoc mode in Cisco ios_command module

I would like to know how can I pass multiple show commands in ios_command module in ad-hoc mode.

Sample with just one command:

ansible all -m ios_command -a "commands='show version'"


Now here I would like to send another command, say show run or any other.

Any suggestions on this would be appreciated.

I think you can make the commands a comma separated string.

I tried that but it throws Invalid Syntax error

It works for me on Ansible 2.5

ansible all -m ios_command -a "commands='show version,show ip ssh'"

I tried in 2.7 and it worked for me as well. Previously I was trying in 2.4.3.

Thanks for the suggestion.