Technical Tip: Ansible too many attempts
| Description | This article describes the behavior of FortiGate when continuously invoking HTTP calls through Ansible scripts and how to fix it. |
| Scope | FortiGate, Ansible. |
| Solution | In case the ansible script contains a single task or multiple tasks that can take around 5 minutes or more to complete, and a REST API admin is configured with traditional credentials of user and password, then users will observe the logs below on FortiGate.
The solution is to use a REST API administrator API Key following the documentation below and make sure the API Key is placed into the host file attribute fortios_access_token plus inside the task or YAML files depending on the programming structure. The article: Technical Tip: Application of Ansible on FortiGate contains a few structural examples.
|

