# win\_iis\_website is not a valid attribute for a play

**URL:** <https://forum.ansible.com/t/win-iis-website-is-not-a-valid-attribute-for-a-play/28016>\
**Category:** Ansible Project\
**Created:** [July 10, 2018, 8:47pm UTC](https://forum.ansible.com/t/win-iis-website-is-not-a-valid-attribute-for-a-play/28016 "2018-07-10T20:47:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amauri\_Toscano](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@Amauri\_Toscano](https://forum.ansible.com/u/Amauri_Toscano)\
**Post date:** [July 10, 2018, 8:47pm UTC](https://forum.ansible.com/t/win-iis-website-is-not-a-valid-attribute-for-a-play/28016/1 "2018-07-10T20:47:21Z")

</div>

Hi all  
i’m brand new to Ansible. Trying to just run an Ansible playbook to re-start a web site, but i’m getting the win\_iis\_website is not a valid attribute for a play… does anybody have any ideas to fix the issue?, below is the code. I’ve Googled and couldn’t find anything that would work so far. Below is the code

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [July 11, 2018, 11:27am UTC](https://forum.ansible.com/t/win-iis-website-is-not-a-valid-attribute-for-a-play/28016/2 "2018-07-11T11:27:29Z")

</div>

Hi,

Your playbook isn’t quite right, you are missing a ‘tasks’ statement. Try this

`
