Jenkins has a Boolean parameter mycheck which gets passed to ansible playbook like below:
mycheck
ansible-playbook -i /var/myserver.hosts /var/testplay.y