Read this in other languages: English, 日本語.
Demonstrate changing an existing Web Application AS3 template. There is a problem with the existing template, the serviceMain is showing red. What is wrong?
Figure out what is wrong. Login to the F5 with your web browser to see what was configured.
ServiceMain
to see why its down.Availability
field in the table.Pools
under Local Traffic
app_pool
Members
buttonThe port 443 is incorrect. The two RHEL web servers are only running on port 80. This is why they are showing down.
Using your text editor of choice open the existing jinja template as3_template.j2
in the ~/j2 directory:
vim
andnano
are available on the control node, as well as Visual Studio and Atom via RDP
Find where the port 443 is and modify it to port 80.
The line looks as follows->
"servicePort": 443,
change it to->
"servicePort": 80,
Run the playbook - exit back into the command line of the control host and execute the following:
[student1@ansible ~]$ ansible-playbook as3.yml
The output will look as follows.
[student1@ansible ~]$ ansible-playbook as3.yml
PLAY [Linklight AS3] **********************************************************
TASK [Create AS3 JSON Body] ***************************************************
ok: [f5]
TASK [Push AS3] ***************************************************************
ok: [f5]
PLAY RECAP ********************************************************************
f5 : ok=2 changed=0 unreachable=0 failed=0
The fixed Jinja template is provided here for an Answer key. Click here: as3_template.j2.
Login to the F5 with your web browser to see what was configured. Grab the IP information for the F5 load balancer from the lab_inventory/hosts file, and type it in like so: https://X.X.X.X:8443/
Partition
and select WorkshopExampleserviceMain
will be displayed.Available (Enabled) - The virtual server is available
)Pools
for app_pool
that both web servers are set to port 80 for their service_port
You have finished this exercise. Click here to return to the lab guide