Dig deeper into Ansible and F5 integration
Basics of Ansible and F5 integration were covered in a joint webinar held earlier in March 2017. To learn more about the integration and current F5 module support along with some use cases view the w...
Published Apr 05, 2017
Version 1.0Payal_S
Ret. Employee
Joined May 16, 2019
Payal_S
Ret. Employee
Joined May 16, 2019
Payal_S
Sep 11, 2018Ret. Employee
Hi Satish,
You can define in the inventory file which BIG-IP hosts you want to run your playbook against.
Example: Inventory file
[bigips]
10.1.1.2
10.1.1.3
10.1.1.4
Playbook
- name: Onboarding BIG-IP
hosts: bigip This will run the playbook against all hosts undet tag [bigips] in the inventory file
gather_facts: false
vars_files:
- irule_var.yml
tasks:
- name: Add iRule
bigip_irule:
server: "{{inventory_hostname}}"
user: "admin"
password: "****"
module: "ltm"
name: "{{item}}"
content: "{{ lookup('file', '{{item}}') }}"
state: present
validate_certs: false
with_items: "{{irules}}"
Irule variable file (irule_var.yml)
irules:
- name_irule1
- name_irule2
- name_irule3