Help needed Please ...

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

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):

Thanks for the suggestion.