Lab 3.1: Create Application via API (Ansible)¶
In this lab, we are going to deploy a basic HTTP application using Ansible.
Warning
david is used to execute Ansible playbooks, make sure it has the correct permission and is a LOCAL user (c.f. Class 1 Module 1)
The following parameters are filled in the playbook create_http_app.yaml.
- BIG-IP: Select
SEA-vBIGIP01.termmarc.com - Collect HTTP Statistics
yes - Application Name:
site22.example.com - Destination Address:
10.1.10.122 - Destination Network Mask:
255.255.255.255 - Service Port:
80 - Servers (Pool Member):
10.1.20.122
Using the IP from the Training Portal, SSH into the Ubuntu Lamp Server server with username f5 and password agility
Execute the playbook:
# cd /home/f5/f5-ansible-demo
# ansible-playbook -i notahost, create_http_app.yaml -vvvv
(This can take a minute or two)
Warning
If the ansible playbook run successfully but the app doesn’t show up, please, review david’s role.
Note
If you prefer not to wait until the app is created, you can switch the variable wait to no in the playbook.
Connect as david (select Auth Provider local) and check on BIG-IQ the application has been correctly created.