Technical Articles
F5 SMEs share good practice.
cancel
Showing results for 
Search instead for 
Did you mean: 
ManiGadde
F5 Employee
F5 Employee

F5 and Ansible have been working together for some time now, with the goal to make application deployments easy through automation. For those wanting an introduction to the integration between F5 & Ansible, I recommend that you check out getting-started-with-ansible – a blog by my colleague Tim Rupp. Over the past few months there has been improvements to the existing F5 modules as well as the addition of new F5 modules which provide greater flexibility to manage and configure the BIG-IP platforms. Based on customer interest, we added modules for creation and configuration of Virtual servers, SNMP, VLANS, GTM configurations, etc. We will be addressing use-cases like onboarding and networking the BIG-IP, application deployment, pool-member monitoring and state, etc.

To learn more Join F5 and Ansible for our webinaron Tuesday March 28th, 2017 from 2PM to 3PM EST where we will:

  • Explain F5 and Ansible integration
  • Cover Existing F5 modules for Ansible and the current development work
  • Show how to use Ansible playbooks to bootstrap F5 BIG-IP and webservers
  • Configure F5 BIG-IP to securely load balance applications using Ansible F5 modules 

Don't miss out! We are looking forward to sharing with you.

Comments
sdejongh
Nimbostratus
Nimbostratus

Hi, Is there a version requirement to be able to use ansible with F5 Big-IP? I keep getting errors about missing modules when trying to connect to our 11.6.x machines: Error: ansible requires the stdlib json or simplejson module, neither was found!

 

ManiGadde
F5 Employee
F5 Employee

Most Ansible code is written for v12. If you are using 11.6 you will have to set 'gather_facts: no'

 

and always use 'delegate_to: localhost'

 

The error you see should go away if you use the delegate_to

 

alois_2269
Nimbostratus
Nimbostratus

Hi, is there a recording available ?

 

Nazir_52641
Cirrus
Cirrus

Hi,

 

We use uri module and iControl rest API to create any object in F5 using ansible.

 

To make the iControl object creation idempotent following can be done:

 

1) Use GET to check the object exist.

 

2) If the object does not exist create the object using POST method

 

3) If the object exist modify/update the object using PUT/PATCH

 

We do end to end automation for virtual server creation including

 

a) Create Monitor

 

b) Create Pool

 

c) Create Rule

 

d) Create required profiles (TCP/HTTP/One-connect) for the Virtual server

 

e) Create SNAT Pool if required

 

f) Create Virtual server

 

g) Import ASM policy and assign to VS.

 

Using uri module with iCOntrol REST API we are not limited by the bigip_ansible modules.

 

Hopes this make life simple for end to end automation of Virtual server creation in F5

 

Thanks

 

Syed Nazir

 

ManiGadde
F5 Employee
F5 Employee

@Nazir, you are right. We also talked about using the URI module in the webinar.

 

ManiGadde
F5 Employee
F5 Employee

Webinar recording will be made available soon

 

Nathan_Pearce_1
Historic F5 Account

Great advice, Nazir! Thanks for sharing.

 

solmon
Nimbostratus
Nimbostratus

thanks for the wonderful advice Nazir,

 

tash201_131407
Nimbostratus
Nimbostratus

Have you had a chance to upload Webinar recording.

 

ManiGadde
F5 Employee
F5 Employee

@tash201, the webinar link https://www.ansible.com/webinars-training/automating-f5-big-ip-using-ansible More details and webinars @

 

Nazir. Would you mind posting the playbook code? Thanks.

 

Perivolaris232_
Nimbostratus
Nimbostratus

Best, it works in ANY country, so if you remain in the United States.iTunes App Downloadyou will not be able to register your card in this account however.

 

KernelPanic
Nimbostratus
Nimbostratus

What are the various software compatibility dependencies for getting ansible f5 to work? Nothing anywhere on F5 tangible information about software levels and modules needed to build these environments.

 

Version history
Last update:
‎20-Mar-2017 10:37
Updated by:
Contributors