I have a shell script - I can execute it using both shell module and script module on the local host. What are advantages of one over the other?
From https://docs.ansible.com/ansible/latest/modules/script_module.html#examples, looks like script module also copies over the script to remote host and then executes it there. So am I correct in assuming that for local hosts or if scripts are already present remotely, there is no difference between the two.