Hello,
I need help with an ansible deployment I would like to create a user account (admin) on fortinet.
but when I play the playbook I have an error that I can’t debug if someone in the group has already encountered this error when deploying on fortinet could he help me.
i share my simple test configuration below:
inventary hosts:
[forti]
192.168.1.136
testForti.yml
hello,
i resolve the issue .
i see that ansible check " https://192.168.1.136:443/logincheck" , but in fortinet the port:443 is use for the sslvpn.
So the best practice is to use new port for the management admin exemple: 4433 and configure a certificat (in system setting fortigate) and enable https on the phisycal port.
So ansible can https for the connection to the FW
just change:
ansible_httpapi_port: 443 → ansible_httpapi_port: 4433