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.

../../_images/lab-8-1.png
  1. Navigate to the Projects page and click on the refesh button to get the latest version of the templates.
../../_images/lab-8-2.png
  1. Navigate to the Templates page and review New_AS3_App
../../_images/lab-8-3.png

Make sure the PLAYBOOK lab/f5-ansible-bigiq-as3-demo/tower/app_create.yml is selected.

../../_images/lab-8-4.png

You can go on the GitHub repository and check review the playbooks and Jinja2 templates.

  1. Back on the Templates page, next to the New_AS3_App template, click on the Start a job using this template.
../../_images/lab-8-5.png
  1. CREDENTIAL: Select BIG-IQ Creds as Credential Type. Then select david-iq.
../../_images/lab-8-6.png
  1. 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
../../_images/lab-8-7.png
  1. PREVIEW: Review the summary of the template deployment, then click on LAUNCH.
../../_images/lab-8-8.png
  1. Follow the JOB deployment of the Ansible playbook.
../../_images/lab-8-9.png

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.

  1. When the job is completed, check the PLAY RECAP and make sure there are no failed.
../../_images/lab-8-10.png
  1. Login on BIG-IQ as david, go to Applications tab and check the application is displayed and analytics are showing.
../../_images/lab-8-11.png

Select AnsibleTower Application, select AnsibleTower_MyApp139 Application Service and look HTTP traffic analytics.

../../_images/lab-8-12.png

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.

  1. 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
  2. Click on the Launch button to start a job using this template*.
  3. CREDENTIAL: Select BIG-IQ Creds as Credential Type. Then select david-iq. Click on NEXT
  4. SURVEY: Enter below information regarding your application service definition. Click on NEXT.
TENANT NAME AnsibleTower
  1. PREVIEW: Review the summary of the template deployment. Click on LAUNCH

  2. 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.

  3. When the job is completed, check the PLAY RECAP and make sure that failed= status is 0.

  4. Logon on BIG-IQ as david (david\david), go to main Application page

  5. Select AnsibleTower Application tile

  6. Notice that the application is now deleted.