# This will return binding information for an existing host
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site'"windows
host|success>>{
"added":[],
"changed":false,
"matched":[
{
"bindingInformation":"*:80:",
"certificateHash":"",
"certificateStoreName":"",
"isDsMapperEnabled":false,
"protocol":"http",
"sslFlags":0
}
],
"parameters":{
"Name":"Default Web Site"
},
"removed":[]
}
# This will return the HTTPS binding information for an existing host
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site' protocol=https"windows
# This will return the HTTPS binding information for an existing host
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site' port:9090 state=present"windows
# This will add a HTTP binding on port 9090
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site' port=9090 state=present"windows
# This will remove the HTTP binding on port 9090
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site' port=9090 state=present"windows
# This will add a HTTPS binding
$ansible-ivagrant-inventory-mwin_iis_webbinding-a"name='Default Web Site' protocol=https state=present"windows
# This will add a HTTPS binding and select certificate to use
# ansible -i vagrant-inventory -m win_iis_webbinding -a "name='Default Web Site' protocol=https certificate_hash= B0D0FA8408FC67B230338FCA584D03792DA73F4C" windows