June 2018
Beginner
578 pages
13h 39m
English
Now we have IIS up-and-running, let's look at enabling ASP.NET support. Again, let's start by creating the role:
$ ansible-galaxy init roles/asp
Starting with the variables in roles/asp/defaults/main.yml, you can see that they look similar to the HTML ones except that we have prefixed them with .aspx so that they do not clash with the variables from the iis role:
aspx_document_root: 'C:\inetpub\wwwroot\ansible\'aspx_file: default.aspxaspx_heading: "Success !!!"aspx_body: | This HTML page has been deployed using Ansible to a <b>{{ ansible_distribution }}</b> host.<br><br> The weboot is <b>{{ aspx_document_root }}</b> this file is called <b>{{ aspx_file }}</b>.<br><br> The output below is from ASP.NET<br><br> Hello from <%= Environment.MachineName ...Read now
Unlock full access