# How to replace ansible.utils.load\_vars() in Ansible 2.0 plugins?

**URL:** <https://forum.ansible.com/t/how-to-replace-ansible-utils-load-vars-in-ansible-2-0-plugins/21718>\
**Category:** Ansible Developer\
**Created:** [June 9, 2016, 10:05am UTC](https://forum.ansible.com/t/how-to-replace-ansible-utils-load-vars-in-ansible-2-0-plugins/21718 "2016-06-09T10:05:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karsten](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@Karsten](https://forum.ansible.com/u/Karsten)\
**Post date:** [June 9, 2016, 10:05am UTC](https://forum.ansible.com/t/how-to-replace-ansible-utils-load-vars-in-ansible-2-0-plugins/21718/1 "2016-06-09T10:05:36Z")

</div>

Hi there,

i’ve extended our ansible inventory for ansible 1.9.4 with a custom vars-plugin. This plugin uses the method load\_vars from the utils module/class imported by “from ansible import utils” (sorry for this simple description, i’m not that proficient in python).

The code using load\_vars looks like this:

`
