Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Immu
New Contributor III

FortiOS and ansible via SSH

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

1 REPLY 1
dbhavsar
Staff
Staff

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.

DNB
Labels
Top Kudoed Authors