Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Choose next IP for SNAT Pool - Ansible

johnramzf5
Altocumulus
Altocumulus

when working with this module: f5networks.f5_modules.bigip_snat_pool , I have this requirement:

Create a SNAT Pool with one individual IP from an arbitrary range (192.168.11.1 - 192.168.11.250) for every new Virtual Server. So for "Virtual Server 1" the SNAT pool IP is "192.168.11.1", for "Virtual Server 2" the SNAT pool IP is "192.168.11.2", so on and so forth.

How can I add that logic when working with this module?

Thank you

john

 

 

2 REPLIES 2

mihaic
MVP
MVP

have you tried to use  a list of IP's and :

loop or with_itmes : https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html

 

Thank you for your reply. I will research how to work with loops in Ansible to test those steps out