win_iis_webbinding : binding net.tcp and net.pipe

44 views
Skip to first unread message

James Hong

unread,
Jun 8, 2016, 10:31:31 AM6/8/16
to Ansible Project
HI 
Im trying to bind a net.tcp and net.pipe to IIS 

I would like the website to have following bindings

Bindings

--------

http *:81:

net.pipe *

net.tcp 808:*




So I tried to run playbook as per below

- name : IIS binding configuration - net.pipe win_iis_webbinding: name: "AppServices" protocol: net.pipe host_header: '' port: '' ip: '*' state: present - name : IIS binding configuration - net.tcp win_iis_webbinding: name: "AppServices" protocol: net.tcp host_header: '' port: '' ip: '808:*' state: present


net.pipe part does add a binding but adds *:80 as its port
net.tcp part fails > "msg": "Parameter 'IPAddress' has invalid format 808:*."}

from the host
 Bindings
 --------
 http *:81:
 net.pipe *:80:

Is there any ways to make this work ?
if not, I guess I have write my own powershell.

Thank You
James H

Matt Davis

unread,
Jun 9, 2016, 1:53:55 PM6/9/16
to Ansible Project
The iis_webbinding module doesn't currently have support for setting the bindingInformation property, which is where that needs to go for net.tcp (not ip). Looks like it'd be trivial to add, so if you want to submit a pull request, CC me on it (@nitzmahone) and I'll take a look!
Reply all
Reply to author
Forward
0 new messages