# TypeError: argument of type 'NoneType' is not iterable

**URL:** <https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212>\
**Category:** Ansible Project\
**Created:** [January 14, 2016, 1:36pm UTC](https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212 "2016-01-14T13:36:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [January 14, 2016, 1:36pm UTC](https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212/1 "2016-01-14T13:36:45Z")

</div>

Worked in 1.9.x, fails with error in 2.0 (see subject line for error)

roles/x/vars/main.yml

---

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [January 14, 2016, 2:06pm UTC](https://forum.ansible.com/t/typeerror-argument-of-type-nonetype-is-not-iterable/20212/2 "2016-01-14T14:06:59Z")

</div>

Additional note, only fails if the inventory\_hostname in question at the time is a windows server, I can work around that with a when clause.
