09-Mar-2023 10:41
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
09-Mar-2023 22:27
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
12-Mar-2023 14:40
Thank you for your reply. I will research how to work with loops in Ansible to test those steps out