F5 BIG-IQ Centralized Management Lab > BIG-IQ All Labs > Class 1: BIG-IQ Application Management and AS3 > Module 2: BIG-IQ Application Templates & Deployment with AS3 using the API Source | Edit on
Lab 2.8: AS3 Application Creation using AWX/Ansible Tower and BIG-IQ¶
Note
Estimated time to complete: 20 minutes
Lab environment access¶
If you have not yet visited the page Getting Started, please do so.
Application Service Creation¶
Click on the AWX (Ansible Tower) button on the system Ubuntu Lamp Server in the lab environment.
Use admin/purple123
to authenticate.
- Navigate to the Projects page and click on the refesh button to get the latest version of the templates.
- Navigate to the Templates page and review
New_AS3_App
Make sure the PLAYBOOK lab/f5-ansible-bigiq-as3-demo/tower/app_create.yml
is selected.
You can go on the GitHub repository and check review the playbooks and Jinja2 templates.
- Back on the Templates page, next to the New_AS3_App template, click on the Start a job using this template.
- CREDENTIAL: Select
BIG-IQ Creds
as Credential Type. Then selectdavid-iq
.
- SURVEY: Enter below information regarding your application service definition.
TENANT NAME | AnsibleTower |
APP SERVICE NAME | MyApp139 |
APP TYPE | http_app or waf_app |
SERVICE IP | 10.1.10.139 |
NODES | 10.1.20.120 and 10.1.20.121 |
- PREVIEW: Review the summary of the template deployment, then click on LAUNCH.
- Follow the JOB deployment of the Ansible playbook.
Note
The FAILED - RETRYING messages are expected as the playbook runs into a LOOP to check the AS3 task completion and will show failed until loop isn’t completed.
- When the job is completed, check the PLAY RECAP and make sure there are no failed.
- Login on BIG-IQ as david, go to Applications tab and check the application is displayed and analytics are showing.
Select AnsibleTower
Application, select AnsibleTower_MyApp139
Application Service and look HTTP traffic analytics.
Application Service Deletion¶
The application owner has informed David that the application is no longer needed and needs to be deleted. David will use an AS3 declaration and BIG-IQ to remove the previously added application from the BIG-IPs.
- Return to AWX (Ansible Tower) and if needed log back in as david (david\david) Navigate to the Templates page and click on Delete_AS3_App
- Click on the Launch button to start a job using this template*.
- CREDENTIAL: Select BIG-IQ Creds as Credential Type. Then select david-iq. Click on NEXT
- SURVEY: Enter below information regarding your application service definition. Click on NEXT.
TENANT NAME | AnsibleTower |
PREVIEW: Review the summary of the template deployment. Click on LAUNCH
Follow the JOB deployment of the Ansible playbook.
The FAILED - RETRYING messages are expected as the playbook runs into a LOOP to check the AS3 task completion and will show failed until loop is completed.
When the job is completed, check the PLAY RECAP and make sure that failed= status is 0.
Logon on BIG-IQ as david (david\david), go to main Application page
Select AnsibleTower Application tile
Notice that the application is now deleted.