Are you trying to install this on a server or desktop Windows OS. I'm pretty sure the error you are getting is because the COM objects the IIS cmdlets use are not registered correctly causing the error you see.
win_features working in the first place to install IIS (microsofts fault, > apparently they dont think we need the required files to install windows > features anymore.) > By default, the Windows image contains the files required for IIS it just isn't configured and installed, usually enabling them is pretty simple and quick. By default Windows will install from that offline cache unless it was removed manually beforehand. Windows should just source from Windows Update if you don't specify a source path but I found that Server 2016 has a potential bug where once it is removed you can't get it back. I've raised a question over on the MSDN forums but because I don't have an MSDN subscription they pretty much said yes we can replicate but can't do anything unless you pony up some money https://social.msdn.microsoft.com/Forums/en-US/2ad1c1d9-09ba-407e-ba03-951c6f2baa34/features-on-demand-server-2016-source-not-found?forum=ws2016. Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c074a705-89cd-4ad4-a30a-dbdb243e4448%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
