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.7: Perform lab 1, 2 and 4 using Ansible¶
Note
Estimated time to complete: 20 minutes
- This lab will be using the following F5 Ansible Galaxy roles:
- atc_deploy ansible Role: Allows AS3 declaration to be sent to automation tool chain service.
- bigiq_move_app_dashboard ansible Role: Move Application Service(s) in BIG-IQ Application Dashboard.
Lab environment access¶
If you have not yet visited the page Getting Started, please do so.
Tasks¶
You can look at the details of the AS3 declarations on the GitHub repository.
Connect via SSH
or Web Shell
to the system Ubuntu Lamp Server. (if you use the Web Shell, login as f5student first: su - f5student).
Execute the playbooks for each tasks.
Warning
Starting 7.0, BIG-IQ displays AS3 application services created using the AS3 Declare API as Unknown Applications. You can move those application services using the GUI, the Move/Merge API, bigiq_move_app_dashboard F5 Ansible Galaxy role or create it directly into Application in BIG-IQ using the Deploy API to define the BIG-IQ Application name.
Task 1: HTTP Application Service:
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task01_create_http_app.json
Login as david and check on BIG-IQ the application has been correctly created.
Task 2: HTTPS Offload:
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task02_create_https_app.json
Login as david and check on BIG-IQ the application has been correctly created.
Task 3a: HTTPS Application with Web Application Firewall:
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task03a_create_waf_app.json
Login as david and check on BIG-IQ the application has been correctly created.
Task 4: Generic Services:
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task04_create_generic_app.json
Login as david and check on BIG-IQ the application has been correctly created.
Task 5a: Add a HTTPS Application to existing HTTP AS3 Declaration (using POST):
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task05a_modify_post_http_app.json
Login as david and check on BIG-IQ the application has been correctly created.
Move Task1 application services into a single Application on BIG-IQ:
cd /home/f5/f5-ansible-bigiq-as3-demo ./ansible_helper ansible-playbook /ansible/bigiq_as3_move_apps.yml -i /ansible/hosts
Login as david and check on BIG-IQ the application has been correctly created.
Warning
If you want Paula to access the new Application called LAB_task1, David will need to assign the role
LAB_task1 Manager
Task 9: Delete Task1 with their AS3 application services:
cd /home/f5/f5-ansible-bigiq-as3-demo ./cmd_bigiq_as3_apps_creation.sh as3_bigiq_task09_delete_task1_app.json
Login as david on BIG-IQ.
Here, we empty the tenant/partition Task1. This should remove those partitions from BOS-vBIGIP01.termmarc.com. The relevant Apps should also disappear from BIG-IQ.