# Help needed Please ...

**URL:** <https://forum.ansible.com/t/help-needed-please/28839>\
**Category:** Ansible Project\
**Created:** [October 22, 2018, 2:37am UTC](https://forum.ansible.com/t/help-needed-please/28839 "2018-10-22T02:37:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satesh\_S\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Satesh\_S\_Kumar](https://forum.ansible.com/u/Satesh_S_Kumar)\
**Post date:** [October 22, 2018, 2:37am UTC](https://forum.ansible.com/t/help-needed-please/28839/1 "2018-10-22T02:37:05Z")

</div>

Hi,

I am trying to install IIS and sub features via Ansible. It gives me the below error. I have Ansible 2.4. Please let me know if you got any pointers …

ERROR! ‘win\_roles’ is not a valid attribute for a Play

---

<div class="post-metadata">

**Author:** ![Oriol\_Tauleria](https://avatars.discourse-cdn.com/v4/letter/o/58f4c7/32.png) [@Oriol\_Tauleria](https://forum.ansible.com/u/Oriol_Tauleria)\
**Post date:** [October 22, 2018, 6:58am UTC](https://forum.ansible.com/t/help-needed-please/28839/2 "2018-10-22T06:58:54Z")

</div>

Hello Satesh,  
your problem is that you are trying to define win\_roles as an attribute and this didn’t work like that.  
You need to define win\_roles as a variable, and then use it with a loop or with\_items or similar.

You can do something like (changing debug for win\_feature and the other params):

---

<div class="post-metadata">

**Author:** ![Satesh\_S\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Satesh\_S\_Kumar](https://forum.ansible.com/u/Satesh_S_Kumar)\
**Post date:** [October 22, 2018, 5:57pm UTC](https://forum.ansible.com/t/help-needed-please/28839/3 "2018-10-22T17:57:30Z")

</div>

Thanks for the suggestion.
