The win_iis_* modules are fairly old and have a few bugs associated with them. I started to rewrite them but haven't really been able to continue due to time commitments and the fact that DSC is probably better suited towards this task. My recommendation is to;
* Ensure PowerShell 5.0 is installed * Install the xWebAdministration DSC resource using win_psmodule https://github.com/PowerShell/xWebAdministration or manually copy the files to the host (https://docs.ansible.com/ansible/devel/windows_dsc.html#custom-dsc-resources) * Create a win_dsc task to modify a website's bindings using the xWebsite resource (https://docs.ansible.com/ansible/devel/windows_dsc.html#setup-iis-website) The only requirements is that PS v5 is installed and that you are using the devel version of win_dsc, 2.4 does have that module but to be able to supply a dict value the devel one has to be used. If you aren't using devel and are on a released version, you can create a new file from https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_dsc.ps1 and add that to the library path for Ansible so it is available to your roles. It is recommended to rename the file from win_dsc so you don't get confused when using a custom module vs an inbuilt one. 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/f28381c3-6254-4403-82e2-5a551302179c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
