Actually that's the wrong question.
In the IIS GUI, I can "Add Website" and give it these parameters
- Alias : Default Web Site
- Application Pool: DefaultAppPool
- Physical path: %SystemDrive%\inetpub\wwwroot
- IP Address: All Unassigned
- Port: 90
- Host name: localhost
But when I try to mimic this with Ansible with
- name: Create Default Web Site
win_iis_website:
application_pool: "DefaultAppPool"
name: "Default Web Site"
port: "90"
ip: "*"
physical_path: "%SystemDrive%\inetpub\wwwroot"
state: started
I get
TASK [install-site : Install Default IIS site] ************************
fatal: [10.227.26.97]: FAILED! => {"changed": false, "msg": "specified
folder must already exist: physical_path", "site": {}}
What am I missing?
On Tuesday, September 28, 2021 at 8:41:13 PM UTC-4 [email protected] wrote:
> I read the win_iis_website
> <https://docs.ansible.com/ansible/latest/collections/community/windows/win_iis_website_module.html>
>
> docs and am able to create an IIS site. However, the IIS GUI has a text box
> for "Alias" but the module does not? So how can I add an alias for the site?
>
> Thanks,
> Chris
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d64e8693-8e2d-47e0-a62c-d351548207een%40googlegroups.com.