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
Jun 04, 2018Ret. Employee
Try the following
Playbook:
- name: Rule mgmt BIG-IP
hosts: localhost
connection: local
gather_facts: false
vars_files:
- irule_var.yml
tasks:
- name: Add iRule
bigip_irule:
server: "xx.xx.xxx.xxx"
user: "admin"
password: "****"
module: "ltm"
name: "{{item}}"
content: "{{ lookup('file', '{{item}}') }}"
state: present
validate_certs: false
with_items: "{{irules}}"
Variable file
irules:
- irule1
- irule2
- irule3