In your script you should enter complete PATH:
In your script you should enter complete PATH:
#!/bin/bash
p="/dir/file/create"
cd "$p"
don't use sh in front of COMMAND module:
Don't use sh in front of COMMAND module:
- name: changing dir now..
command: /dir/file/create/vars.sh
but 'shell' module is better than 'command' module for your issue.