AWX Setup for F5 Ansible Collection on Ubuntu¶
Below are the details of the versions of the tools that have been used to set up AWX on Ubuntu to run our F5 Ansible collection. More details will be added later.
Tool Versions¶
- Host operating system: Ubuntu 24.04 LTS
- AWX: v2.19.1
- Execution Environment: AWX EE (latest) with Ansible Core 2.15.13
- F5 Ansible collection used for the test: f5networks.f5_bigip v3.10
Project Setup on AWX¶
The Ansible playbooks that have been tested on AWX are part of a Git repository hosted on GitLab. To set up a project that imports a Git repository, follow these steps:
Configure Source Control Credentials¶
- Create a new Credential.
- Select Credential Type as Source Control.
- Provide your credentials for the platform where the project is hosted (e.g., GitLab or GitHub).
Create a New Project¶
- Create a new project in AWX.
- Set Source Control Type to git.
- Provide the GitLab/GitHub repository URL in the Source Control URL field.
- In the Source Control Credential field, select the credential created in the previous step.
Set Up Inventory¶
The repository used as a project contains an inventory file. To use this file for configuring inventory in AWX:
- Create a new inventory from the AWX sidebar.
- Click on the newly created inventory.
- On the details page, go to the Sources tab.
- In Sources, click Add and select Sourced from a Project for the Source field.
- In the Source details section: - Select the appropriate project. - In the Inventory file dropdown, select the inventory file from the project.
Create a Job Template¶
- Navigate to the Templates section on the AWX sidebar.
- Create a new template.
- Provide: - A template name. - The project that the template will use. - The inventory to be used.
- Under the Playbook dropdown, select the playbook from the project that should run when the job starts.
Example Playbook running on AWX:¶
- name: Create SSLO SSL profiles
f5networks.f5_bigip.bigip_sslo_config_ssl:
name: "{{ item }}"
client_settings:
proxy_type: "forward"
ca_cert: "/Common/default.crt"
ca_key: "/Common/default.key"
state: present
with_items:
- "{{ ssl1 }}"
- "{{ ssl2 }}"
- name: Create Vlans
f5networks.f5_bigip.bigip_command:
commands:
- tmsh create net vlan client-vlan
- tmsh create net vlan dlp-vlan
- tmsh create net vlan vlan1
- tmsh create net vlan vlan2