I am planning to execute a shell script on a remote server using Ansible playbook.
blank test.sh file:
touch test.sh
Playbook:
It's better to use script module for that: http://docs.ansible.com/script_module.html
script