# Testing the ansible version

**URL:** <https://forum.ansible.com/t/testing-the-ansible-version/14007>\
**Category:** Ansible Project\
**Created:** [November 26, 2013, 7:40pm UTC](https://forum.ansible.com/t/testing-the-ansible-version/14007 "2013-11-26T19:40:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://forum.ansible.com/u/Brian_Candler)\
**Post date:** [November 26, 2013, 7:40pm UTC](https://forum.ansible.com/t/testing-the-ansible-version/14007/1 "2013-11-26T19:40:51Z")

</div>

Now that ansible 1.4.0 is out, I’d like to start making use of some of the new modules. But I’d like to make sure there are no surprises for people using my playbooks.

So is there a way inside a playbook either to check the version of ansible it is running under, or assert a minimum required version? Then the user can be informed in a helpful way that they need to update ansible, rather than just having it barf on an unknown module.

Thanks,

Brian.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 26, 2013, 9:58pm UTC](https://forum.ansible.com/t/testing-the-ansible-version/14007/2 "2013-11-26T21:58:17Z")

</div>

Yeah, this has been a proposed feature but is not implemented yet.

Here’s the ticket if someone wants to add it before us: [https://github.com/ansible/ansible/issues/4357](https://github.com/ansible/ansible/issues/4357)
