If you just trying to run a single task locally on your ansible host then just specify a parameter called local_action
Something like this:
name: example
hosts: webservers
tasks:
- name: check out a git repository
local_action: git repo=git://ansible.example.org/path-to-repo dest=/local/path