{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/4357","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/4357/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/4357/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/4357/events","html_url":"https://github.com/ansible/ansible/issues/4357","id":20469498,"number":4357,"title":"Allow playbooks to require a specific version of Ansible","user":{"login":"magnus919","id":942000,"avatar_url":"https://avatars.githubusercontent.com/u/942000?v=3","gravatar_id":"","url":"https://api.github.com/users/magnus919","html_url":"https://github.com/magnus919","followers_url":"https://api.github.com/users/magnus919/followers","following_url":"https://api.github.com/users/magnus919/following{/other_user}","gists_url":"https://api.github.com/users/magnus919/gists{/gist_id}","starred_url":"https://api.github.com/users/magnus919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnus919/subscriptions","organizations_url":"https://api.github.com/users/magnus919/orgs","repos_url":"https://api.github.com/users/magnus919/repos","events_url":"https://api.github.com/users/magnus919/events{/privacy}","received_events_url":"https://api.github.com/users/magnus919/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_idea","name":"feature_idea","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2013-10-03T17:07:27Z","updated_at":"2016-02-23T22:10:09Z","closed_at":"2014-03-14T15:00:08Z","body":"I would like to be able to require a specific release or do a comparison test for minimum/maximum version of Ansible to make sure plays will run as expected. Ansible versions outside of that specified in the playbook should ideally fail to run with a useful human readable error."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/187938801","html_url":"https://github.com/ansible/ansible/issues/4357#issuecomment-187938801","issue_url":"https://api.github.com/repos/ansible/ansible/issues/4357","id":187938801,"user":{"login":"viatcheslavmogilevsky","id":734490,"avatar_url":"https://avatars.githubusercontent.com/u/734490?v=3","gravatar_id":"","url":"https://api.github.com/users/viatcheslavmogilevsky","html_url":"https://github.com/viatcheslavmogilevsky","followers_url":"https://api.github.com/users/viatcheslavmogilevsky/followers","following_url":"https://api.github.com/users/viatcheslavmogilevsky/following{/other_user}","gists_url":"https://api.github.com/users/viatcheslavmogilevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/viatcheslavmogilevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viatcheslavmogilevsky/subscriptions","organizations_url":"https://api.github.com/users/viatcheslavmogilevsky/orgs","repos_url":"https://api.github.com/users/viatcheslavmogilevsky/repos","events_url":"https://api.github.com/users/viatcheslavmogilevsky/events{/privacy}","received_events_url":"https://api.github.com/users/viatcheslavmogilevsky/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T22:10:09Z","updated_at":"2016-02-23T22:10:09Z","body":"@ssbarnea you can write callback plugin that can check ansible version and fail all execution with human  readable message if version is not correct (see (v2_)playbook_on_start event)"}}