# Global name 'module" is not defined after upgrading to Ansible 2.0

**URL:** <https://forum.ansible.com/t/global-name-module-is-not-defined-after-upgrading-to-ansible-2-0/20904>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 17, 2016, 12:44pm UTC](https://forum.ansible.com/t/global-name-module-is-not-defined-after-upgrading-to-ansible-2-0/20904 "2016-03-17T12:44:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [March 17, 2016, 12:44pm UTC](https://forum.ansible.com/t/global-name-module-is-not-defined-after-upgrading-to-ansible-2-0/20904/1 "2016-03-17T12:44:55Z")

</div>

This looks like you updated the main ansible from the git repo by not the modules. The combination of the devel branch git repo and old modules will give you this error.

We have some instructions about running from a git checkout here: [http://docs.ansible.com/ansible/intro\_installation.html#running-from-source](http://docs.ansible.com/ansible/intro_installation.html#running-from-source) the party that you’re probably missing is the git submodule update --init

-Toshio
