This is great information. Thank you for your help. I will read into the links provided and see if I can work out a resolution with DSC.
On Tuesday, November 14, 2017 at 8:12:21 PM UTC-5, Jordan Borean wrote: > > 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/b4a65e84-1d5d-4bb9-9c68-09349732e93a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
