- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fortios API for vip/load balancer not saving ldb_method 7.2.4
Using ansible galaxy fortinet.fortios when creating a vip I am trying to set the ldb_method. The only option that ever gets set is static.
type: server-load-balancer
server-type: ip
ldb_method: round-robin
if I specify an option that is not available I get an appropriate error.
Solved! Go to Solution.
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ended up just using the ansible.builtin.uri and specified the headers and json directly in the job.
The ansible galaxy fortinet.fortios httpapi appears to be missing things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have more details? Screenshots or specific steps, etc., thanks.
Thanks
Kangming
Created on 04-27-2023 11:42 AM Edited on 04-27-2023 12:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is the play I run where round-robin is circled and then a screenshot of the resulting virtual server that shows it is created as static instead of round-robin.
ansible version 2.12.10
ansible galaxy fortinet.fortios collection 2.2.3.
fortigate fortios 7.2.4 on 1500D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ended up just using the ansible.builtin.uri and specified the headers and json directly in the job.
The ansible galaxy fortinet.fortios httpapi appears to be missing things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Thanks for your feedback.
We have submitted a bug internally to track and resolve it, can you describe your workaround in detail? so that we can investigate it better, Thanks!
Thanks
Kangming
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I created another task using ansible.builtin.uri right after the first task using the "PUT" method instead of the POST method just to update the ldb_method.