Hi,
I have a problem with FortiOS and ansible.
I am not able to connect with ansible to FortiOS via SSH.
I don't have any problems with httpapi, but it's not that simple to enter just "regular commands"... e.g. "execute ping x.x.x.x" or "get system status".
Have anyone ever connected and configured a Fortinet device with ansible via SSH?
And yes, I am able to connect via SSH to hosts.
Maybe someone can show an example of inventory (variables) and playbook?!
Many thanks
Immu
Hi @Immu ,
- If you are able to connect to FortiGate from anisble using SSH. Please let us know what part you want to config i.e., interface, system settings etc.
User | Count |
---|---|
2116 | |
1187 | |
770 | |
451 | |
344 |
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 2025 Fortinet, Inc. All Rights Reserved.