I've just started getting into using Ansible with Fortinet. My first play was to setup DHCP reservations from my inventory (netbooting PIs). It seem like you have to manage the ID field for each reservation. Right now I'm basing the ID on the position in a list object that i'm looping through. I'm thinking I'm going to change this to be a group or something else so i can have a more static number.
My concern is how do you manage the ID. I don't like the idea of parsing the config to find the next number because I can't guarantee that ID is really free as the fortigate doesn't seem to support locking an ID (feels like race condition basically). It also doesn't seem like I can say just give me an ID that isn't used.
I'm assuming this is something I'll need to deal with across other fortinet.fortios modules but I haven't gone into anything outside of dhcp just yet.
Hopefully I'm missing something here. I read through a few of the docs and nothing is standing out. I did find member_path and member_state so at least I have something that works.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
You may need to join the Fortinet developer network please check this forum and the comment by Kgeorge : https://community.fortinet.com/t5/Support-Forum/Fortigate-Semaphore-Ansible-Error-connection/td-p/25...
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1732 | |
1106 | |
752 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.